Exercise · ZW-SET-OPERATIONS-003 · ★☆☆ Basic

With \(A=\{1,2,3,4,5\}\) and \(B=\{4,5,6,7\}\), what is \(A\setminus B\)?

Choose one option.

Show answer
  • B. \(\{1,2,3\}\)

Explanation

\(A\setminus B\) keeps the elements of \(A\) that are not in \(B\): 1, 2 and 3. The set \(\{6,7\}\) is \(B\setminus A\).

Study Discrete mathematics in ZWMath →

Review the concept: Set operations

Set operations combine two sets \(A\) and \(B\), inside a universe \(U\), to form another one: union, intersection, difference and complement.

\[A\cup B,\quad A\cap B,\quad A\setminus B,\quad A^{c}=U\setminus A\]

More practice problems: set operations

← ZW-SET-OPERATIONS-002 ZW-SET-OPERATIONS-004 →