Exercises to Sets
Q1. Let A = {1,2,3,4} and B = {3,4,5,6}. Find:
- A ∪ B
- A ∩ B
- A − B
- B − A
Reveal solution
Given:
Solutions:
-
A ∪ B (Union):
Combine all elements from both sets, without repetition.
-
A ∩ B (Intersection):
Elements common to both sets.
-
A − B (Difference):
Elements in A that are not in B.
-
B − A (Difference):
Elements in B that are not in A.
Q2. Find the cardinality of:
A = {letters in “KATHMANDU”}B = {multiples of 5 ≤ 50}
Reveal solution
A = {letters in “KATHMANDU”}
List the distinct letters in "KATHMANDU":
K, A, T, H, M, N, D, U
There are 8 distinct letters.
Cardinality of A:
B = {multiples of 5 ≤ 50}
List the multiples of 5 up to 50: {5, 10, 15, 20, 25, 30, 35, 40, 45, 50}
There are 10 such numbers.
Cardinality of B: