Set Theory Solved Questions

Most Set Theory questions here reduce to one formula — the union of two groups equals their sizes added together, minus whatever they share — since adding the overlap twice is the error this formula exists to fix. This page covers that two-set formula, its extension to three groups, and the "exactly two" and "none" variants, with several fully worked examples.

Written by Mahesh Srivastava, Founder of Pariksha Saathi. Published: 2026-10-03. Editorial standards & corrections

Jump to practice questions ↓

The concept, quickly

  • For two sets: |A ∪ B| = |A| + |B| − |A ∩ B| — adding the two group sizes directly double-counts whoever is in both, so the overlap is subtracted back out once.
  • "At least one" means the union, |A ∪ B|. "Neither" means everyone outside the union: Total − |A ∪ B|.
  • "Only A" (in A but not B) = |A| − |A ∩ B|. "Exactly one of A or B" = |A ∪ B| − |A ∩ B| (the union, minus whoever is in both).
  • Draw two overlapping circles and fill in the overlap number first — the "only A" and "only B" regions are then whatever’s left in each circle after removing the overlap.
  • For three sets, the formula extends (inclusion-exclusion): |A∪B∪C| = |A|+|B|+|C| − |A∩B| − |B∩C| − |A∩C| + |A∩B∩C|. People in all three groups are counted three times in |A|+|B|+|C| and then removed three times by the three pairwise subtractions, which would leave them out of the total altogether, so the "all three" count is added back once.
  • "Exactly two" of three groups = (sum of the three pairwise intersections) − 3 × (all three) — each pairwise intersection includes the "all three" people, so subtracting 3 times that count removes them from each of the three pairwise totals.
  • For a three-circle Venn diagram, fill in the centre (all three) first, then each pairwise-only region, then each single-group-only region — working from the most overlapped region outward avoids double-counting.

Worked examples

1. In a class of 60 students, 35 play cricket and 25 play football. If 10 students play both, how many play at least one of the two games?

Solution

  1. |Cricket ∪ Football| = 35 + 25 − 10 = 50.

Answer: 50

2. In a survey of 100 people, 60 like tea and 50 like coffee. If 20 like both, how many like neither?

Solution

  1. |Tea ∪ Coffee| = 60 + 50 − 20 = 90.
  2. Neither = Total − union = 100 − 90 = 10.

Answer: 10

3. In a group of 50 students, 30 study Math, 25 study Physics, and 15 study both. How many study only Math (not Physics)?

Solution

  1. Only Math = |Math| − |Math ∩ Physics| = 30 − 15 = 15.

Answer: 15

4. In a class of 80 students, 50 play cricket, 40 play football, and 20 play both. How many play exactly one of the two games?

Solution

  1. |Cricket ∪ Football| = 50 + 40 − 20 = 70.
  2. Exactly one = union − both = 70 − 20 = 50.

Answer: 50

5. In a class of 100 students: 50 play cricket, 40 play football, 30 play hockey. 15 play both cricket and football, 12 play both football and hockey, 10 play both cricket and hockey, and 5 play all three. How many play at least one of the three games?

Solution

  1. |C∪F∪H| = |C|+|F|+|H| − |C∩F| − |F∩H| − |C∩H| + |C∩F∩H|
  2. = 50+40+30 − 15−12−10 + 5
  3. = 120 − 37 + 5 = 88.

Answer: 88

6. Using the same data as above, how many students play exactly two of the three games?

Solution

  1. Exactly two = (sum of pairwise intersections) − 3 × (all three)
  2. = (15+12+10) − 3(5) = 37 − 15
  3. = 22.

Answer: 22

7. Using the same data as above, how many students play none of the three games?

Solution

  1. None = Total − (at least one) = 100 − 88 = 12.

Answer: 12

Try these yourself

Find the union first, then adjust for "neither," "only," "exactly two," or "exactly one" as needed, then check against the answer.

1. In a class of 70 students, 40 play chess and 30 play carrom. If 15 play both, how many play at least one game?

Answer: 55

2. In a survey of 120 people, 70 like movies and 60 like music. If 25 like both, how many like neither?

Answer: 15

3. In a group of 90 students, 55 study English, 45 study Hindi, and 20 study both. How many study only English?

Answer: 35

4. In a survey of 80 people: 45 read newspaper A, 35 read B, 30 read C. 15 read both A and B, 12 read both B and C, 10 read both A and C, and 5 read all three. How many read at least one?

Answer: 78. 45+35+30 − 15−12−10 + 5.

5. Using the same data, how many read exactly two of the three newspapers?

Answer: 22. (15+12+10) − 3(5).

6. Using the same data, how many read none of the three?

Answer: 2. 80 − 78.

7. In a class of 55 students, 32 play basketball and 28 play volleyball. If 10 play both, how many play neither?

Answer: 5. Union = 32+28−10 = 50; neither = 55−50.

All 14 practice questions on Set Theory, with answers →

Where this comes up

The counting method on this page (union, intersection, "only" and "none") is also used in Venn diagram questions that give the number in each group and ask how many fall in a particular region. Venn diagrams are named in the reasoning syllabus of RRB NTPC, RRB Group D, RRB ALP, UP Police Constable and Haryana CET among the exams Pariksha Saathi covers, though none of these syllabi names Set Theory as a separate topic; the separate Venn Diagram lesson on this site works through more questions of this kind. For any other exam, check your own exam’s official notification.

Keep practising

Solve the questions above before opening the answers. Explain each step in your own words, then revisit any mistakes.

Go to practice questions →

Explore the lesson library