logo

Question detail

Let A = {1, 2, 3, 4} and B = {3, 4, 5}. Determine A ∪ B, A ∩ B and A\B. State the meaning of each operation.

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

Question

Type

practice

Style

Topic

Regular languages

Exam-style question

Try this first

Let A = {1, 2, 3, 4} and B = {3, 4, 5}. Determine A ∪ B, A ∩ B and A\B. State the meaning of each operation.

Model answer

What a good answer should say

  • A ∪ B = {1, 2, 3, 4, 5}; A ∩ B = {3, 4}; A\B = {1, 2}.
  • The union contains every element that is in A or B.
  • The intersection contains elements that are in both A and B.
  • The difference A\B contains elements that are in A but not in B.

Explanation

Why this works

For the union, repeated values are included only once because a set contains each value at most once. The common elements are 3 and 4, giving the intersection.

Removing the elements of B from A leaves 1 and 2.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.