WishWasTraining Academy
CDS exam school
โ† home
Chapter A3-8 ยท 8 of 9 in Algebra ยท 16 min read

Sets: language, notation and Venn diagrams

5 real CDS questions of this kind in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 5 questions in the 6 papers from CDS I 2024 to CDS II 2026: two in CDS II 2024 and three in CDS II 2026. The other four papers had none. The questions are of two kinds. In the first, you decide whether a statement in set language is correct: is this set finite, is it a null set, what is the complement of the universal set. In the second, you count people in a survey with two or three overlapping groups. Both kinds are among the easiest marks in the paper if the words are clear in your mind.

What you will be able to do

  • Read and write a set in both forms, and tell an element (โ€‹\inโ€‹) from a subset (โ€‹\subsetโ€‹).
  • Say whether a set is null, singleton, finite or infinite.
  • Find the union, intersection, difference and complement of sets, and show them on a Venn diagram.
  • Solve counting problems on two or three sets.

Before you start you should know: the natural numbers, integers and real numbers (Chapter A1-1), and how to solve a simple equation. Nothing else is needed.

1. What a set is

A set is a well-defined collection of objects, called its elements. "Well-defined" means we can say clearly whether any object is in the set or not. "The tall students of a class" is not a set. "The students of a class who are taller than 170 cm" is a set.

There are two ways to write a set.

  • Roster form: list the elements inside braces. โ€‹A = \{1, 2, 3, 4, 5\}โ€‹.
  • Set-builder form: give the rule. โ€‹A = \{x : x \text{ is a natural number and } x < 6\}โ€‹. Read the colon as "such that".

We write โ€‹3 \in Aโ€‹ ("3 belongs to โ€‹Aโ€‹") and โ€‹7 \notin Aโ€‹. The order of the elements does not matter, and an element is not written twice.

The exam uses these letters for sets of numbers:

Letter Set Elements
โ€‹\mathbb{N}โ€‹ natural numbers โ€‹1, 2, 3, \dotsโ€‹
โ€‹\mathbb{Z}โ€‹ integers โ€‹\dots, -2, -1, 0, 1, 2, \dotsโ€‹
โ€‹\mathbb{Q}โ€‹ rational numbers all fractions โ€‹\frac{p}{q}โ€‹ of integers, โ€‹q \ne 0โ€‹
โ€‹\mathbb{R}โ€‹ real numbers every point of the number line

The letter matters. โ€‹\{x \in \mathbb{Z} : x^2 = 4\}โ€‹ is โ€‹\{-2, 2\}โ€‹. But โ€‹\{x \in \mathbb{N} : x^2 = 4\}โ€‹ is โ€‹\{2\}โ€‹ only.

2. Kinds of sets

Name Meaning Example
Null set (empty set), written โ€‹\phiโ€‹ or โ€‹\{\ \}โ€‹ has no element โ€‹\{x \in \mathbb{Z} : x^2 = 5\}โ€‹, because no integer has square 5
Singleton set has exactly one element the set of even prime numbers, which is โ€‹\{2\}โ€‹
Finite set its elements can be counted, and the counting comes to an end the set of people living in India
Infinite set the counting never ends โ€‹\mathbb{N}โ€‹; the set of real numbers between 0 and 1

Three points decide most statement questions.

  • A set that is very large is still finite if the count would end. The grains of sand on a beach form a finite set.
  • Between any two different real numbers there are endlessly many real numbers. So โ€‹\{x \in \mathbb{R} : 0 < x < 1\}โ€‹ is infinite. But โ€‹\{x \in \mathbb{N} : 0 < x < 1\}โ€‹ is a null set.
  • To test for a null set, look for one element. If you find even one, the set is not null. The null set is itself finite: it has 0 elements.

The number of elements of a finite set โ€‹Aโ€‹ is written โ€‹n(A)โ€‹. For โ€‹A = \{1, 2, 3, 4, 5\}โ€‹, โ€‹n(A) = 5โ€‹.

3. Subsets, the universal set and the complement

โ€‹Aโ€‹ is a subset of โ€‹Bโ€‹, written โ€‹A \subset Bโ€‹, if every element of โ€‹Aโ€‹ is also in โ€‹Bโ€‹. For example, โ€‹\{1, 2\} \subset \{1, 2, 3\}โ€‹.

  • Every set is a subset of itself, and โ€‹\phiโ€‹ is a subset of every set.
  • A set with โ€‹nโ€‹ elements has โ€‹2^nโ€‹ subsets. For example, โ€‹\{a, b\}โ€‹ has โ€‹2^2 = 4โ€‹ subsets: โ€‹\phiโ€‹, โ€‹\{a\}โ€‹, โ€‹\{b\}โ€‹ and โ€‹\{a, b\}โ€‹.

Do not mix the two signs. โ€‹\inโ€‹ joins an element to a set. โ€‹\subsetโ€‹ joins a set to a set. So โ€‹1 \in \{1, 2\}โ€‹ and โ€‹\{1\} \subset \{1, 2\}โ€‹ are both true.

All the sets in one problem are taken from a large fixed set called the universal set, โ€‹Uโ€‹. The complement of โ€‹Aโ€‹, written โ€‹A'โ€‹ or โ€‹A^cโ€‹, is the set of elements of โ€‹Uโ€‹ that are not in โ€‹Aโ€‹.

  • โ€‹A'โ€‹ is made only of elements of โ€‹Uโ€‹, so โ€‹A'โ€‹ is a subset of โ€‹Uโ€‹.
  • The complement of โ€‹Uโ€‹ is โ€‹\phiโ€‹: nothing in โ€‹Uโ€‹ is outside โ€‹Uโ€‹. The complement of โ€‹\phiโ€‹ is โ€‹Uโ€‹.
  • โ€‹(A')' = Aโ€‹.

4. Operations and the Venn diagram

Take โ€‹U = \{1, 2, \dots, 10\}โ€‹, โ€‹A = \{1, 2, 3, 4, 5\}โ€‹ and โ€‹B = \{4, 5, 6, 7\}โ€‹.

Operation Symbol Meaning In the example
Union โ€‹A \cup Bโ€‹ elements in โ€‹Aโ€‹ or in โ€‹Bโ€‹ (or in both) โ€‹\{1, 2, 3, 4, 5, 6, 7\}โ€‹
Intersection โ€‹A \cap Bโ€‹ elements in both โ€‹Aโ€‹ and โ€‹Bโ€‹ โ€‹\{4, 5\}โ€‹
Difference โ€‹A - Bโ€‹ elements in โ€‹Aโ€‹ but not in โ€‹Bโ€‹ โ€‹\{1, 2, 3\}โ€‹
Difference โ€‹B - Aโ€‹ elements in โ€‹Bโ€‹ but not in โ€‹Aโ€‹ โ€‹\{6, 7\}โ€‹
Complement โ€‹A'โ€‹ elements of โ€‹Uโ€‹ not in โ€‹Aโ€‹ โ€‹\{6, 7, 8, 9, 10\}โ€‹

Four Venn diagrams with one part shaded in each: the union of A and B, the intersection, A minus B, and the complement of A

Two sets with no common element are called disjoint: โ€‹A \cap B = \phiโ€‹.

In a Venn diagram a rectangle stands for โ€‹Uโ€‹ and a circle for each set. Two overlapping circles make four separate regions.

Venn diagram of the example: 1, 2, 3 only in A; 4, 5 in both; 6, 7 only in B; 8, 9, 10 outside both circles

De Morgan's laws. โ€‹(A \cup B)' = A' \cap B'โ€‹ and โ€‹(A \cap B)' = A' \cup B'โ€‹. In words: "not in โ€‹Aโ€‹ or โ€‹Bโ€‹" is the same as "not in โ€‹Aโ€‹ and not in โ€‹Bโ€‹". In the example both sides of the first law are โ€‹\{8, 9, 10\}โ€‹, the region outside both circles.

5. Counting with sets

When we add โ€‹n(A)โ€‹ and โ€‹n(B)โ€‹, the common elements are counted twice. So we take them away once:

n(A \cup B) = n(A) + n(B) - n(A \cap B)

In the example: โ€‹7 = 5 + 4 - 2โ€‹.

To find Use
In at least one of โ€‹Aโ€‹, โ€‹Bโ€‹ โ€‹n(A \cup B) = n(A) + n(B) - n(A \cap B)โ€‹
Only in โ€‹Aโ€‹ โ€‹n(A) - n(A \cap B)โ€‹
In exactly one of โ€‹Aโ€‹, โ€‹Bโ€‹ โ€‹n(A) + n(B) - 2\,n(A \cap B)โ€‹
In neither โ€‹n(U) - n(A \cup B)โ€‹

For three sets:

n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(C \cap A) + n(A \cap B \cap C)

A way of thinking that is faster than the formula. Add the sizes of the sets. In this total, a person who is in one set is counted once, a person in two sets is counted twice, and a person in all three is counted three times. The last real question below is solved in two lines this way.

In a word problem, "30 like tea" means the whole tea circle, including those who also like coffee. "30 like only tea" means the part of the tea circle outside the coffee circle. Read for the word "only".

Worked examples

Example 1. Say whether each set is null, singleton, finite or infinite: (i) โ€‹\{x \in \mathbb{N} : 2x = 5\}โ€‹; (ii) โ€‹\{x \in \mathbb{Z} : x^2 = 4\}โ€‹; (iii) โ€‹\{x \in \mathbb{R} : 1 < x < 2\}โ€‹.

(i) โ€‹2x = 5โ€‹ gives โ€‹x = 2.5โ€‹, which is not a natural number. The set is null. (ii) The set is โ€‹\{-2, 2\}โ€‹: finite, with two elements. (iii) There are endlessly many real numbers between 1 and 2, such as 1.5, 1.05, 1.005. The set is infinite.

Example 2. In a group of 60 people, 35 drink tea, 30 drink coffee and 10 drink both. How many drink neither? How many drink exactly one of the two?

At least one: โ€‹35 + 30 - 10 = 55โ€‹. Neither: โ€‹60 - 55 = 5โ€‹.

Only tea: โ€‹35 - 10 = 25โ€‹. Only coffee: โ€‹30 - 10 = 20โ€‹. Exactly one: โ€‹25 + 20 = 45โ€‹.

Venn diagram for tea and coffee: 25 only tea, 10 both, 20 only coffee, 5 neither, 60 people in all

Fill such a diagram from the middle (the overlap) outwards.

Example 3. In a class of 100 students, 50 study Mathematics, 40 study Physics and 35 study Chemistry. 15 study Mathematics and Physics, 12 study Physics and Chemistry, 10 study Mathematics and Chemistry, and 5 study all three. How many study none of the three?

โ€‹50 + 40 + 35 - 15 - 12 - 10 + 5 = 93โ€‹ study at least one. So โ€‹100 - 93 = 7โ€‹ study none.

Venn diagram of three sets: 5 in all three; 10, 5 and 7 in exactly two; 30, 18 and 18 in exactly one; 7 outside

Example 4. In a survey of 80 people, 55 read a Hindi newspaper and 45 read an English newspaper. What is the least number that must read both?

โ€‹n(H \cap E) = 55 + 45 - n(H \cup E) = 100 - n(H \cup E)โ€‹. The union cannot be more than the 80 people surveyed. So the number reading both is at least โ€‹100 - 80 = 20โ€‹.

From the real papers

The first three questions are from CDS II 2026. The answers agree with the provisional official key; the final key had not been published when this lesson was written. Try each for 72 seconds before reading the solution.

CDS II 2026, Q31. Consider the following statements: I. The set of all birds living on the Earth is an infinite set. II. The set of all real numbers between 0 and 10 is a finite set. Which of the statements given above is/are correct?

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. The birds alive on the Earth are very many, but a count of them would come to an end. That set is finite, so I is wrong. Between 0 and 10 there are endlessly many real numbers (1, 1.1, 1.01, ...). That set is infinite, so II is wrong. Answer (d).

CDS II 2026, Q32. Consider the following sets: I. The set of even prime numbers II. โ€‹\{x \in \mathbb{R} : x^3 + 1 = 0\}โ€‹ III. โ€‹\{n \in \mathbb{Z} : n^2 < 1\}โ€‹ How many of the above are null sets?

(a) Noneโ€ƒโ€ƒ(b) Oneโ€ƒโ€ƒ(c) Twoโ€ƒโ€ƒ(d) All the three

Solution. Look for one element in each. I contains 2, the only even prime. II contains โ€‹-1โ€‹, because โ€‹(-1)^3 + 1 = 0โ€‹. III contains 0, because โ€‹0^2 = 0 < 1โ€‹. Each set has an element, so none is a null set. Answer (a).

CDS II 2026, Q33. Consider the following statements: I. If A is a subset of U and U is the Universal set, then the complement of the set A is also a subset of U. II. The complement of a Universal set is a singleton set. Which of the statements given above is/are correct?

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. The complement of A is made of the elements of U that are not in A. Every one of them is in U, so it is a subset of U: I is correct. The complement of U has no element at all. It is the null set, not a set with one element: II is wrong. Answer (a).

One more, from CDS II 2024. No official key was published; the answer is our own working.

CDS II 2024, Q98. In a class of 160 students, each of them opt at least one language from among English, Hindi and Sanskrit. It is found that 130 students opt English, 120 students Hindi and 110 Sanskrit. If the students opt either only one language or all three languages, then what is the number of students who study all three languages?

(a) 40โ€ƒโ€ƒ(b) 60โ€ƒโ€ƒ(c) 80โ€ƒโ€ƒ(d) 100

Solution. Let โ€‹tโ€‹ students take all three. The other โ€‹160 - tโ€‹ take exactly one. Add the three counts: โ€‹130 + 120 + 110 = 360โ€‹. In this total a one-language student is counted once and a three-language student three times. So โ€‹360 = (160 - t) + 3t = 160 + 2tโ€‹, which gives โ€‹t = 100โ€‹. Check: English only 30, Hindi only 20, Sanskrit only 10, all three 100; total 160. Answer (d).

Practice questions in the exam style

These two questions are our own. They are not from a real paper.

Practice 1. In a group of 120 people, 70 speak Hindi, 60 speak English and 20 speak neither. How many speak both languages?

(a) 10โ€ƒโ€ƒ(b) 20โ€ƒโ€ƒ(c) 30โ€ƒโ€ƒ(d) 40

Solution. At least one language: โ€‹120 - 20 = 100โ€‹. Then โ€‹100 = 70 + 60 - n(\text{both})โ€‹, so โ€‹n(\text{both}) = 30โ€‹. Answer (c).

Practice 2. Consider the following statements: I. The set of all prime numbers less than 100 is a finite set. II. โ€‹\{x \in \mathbb{N} : x + 5 = 2\}โ€‹ is a null set. Which of the statements given above is/are correct?

(a) I onlyโ€ƒโ€ƒ(b) II onlyโ€ƒโ€ƒ(c) Both I and IIโ€ƒโ€ƒ(d) Neither I nor II

Solution. There are 25 primes below 100, so I is correct. โ€‹x + 5 = 2โ€‹ gives โ€‹x = -3โ€‹, which is not a natural number, so the set has no element and II is correct. Answer (c).

Mistakes that cost marks

  1. Calling a very large set infinite. If the count would end, the set is finite, however large it is.
  2. Forgetting which numbers are allowed. โ€‹\{x \in \mathbb{N} : x^2 = 4\}โ€‹ has one element. โ€‹\{x \in \mathbb{Z} : x^2 = 4\}โ€‹ has two. Read the letter after โ€‹\inโ€‹.
  3. Taking โ€‹\{0\}โ€‹ as the null set. โ€‹\{0\}โ€‹ has one element, the number 0. It is a singleton set. The null set has no element.
  4. Counting the overlap twice. โ€‹n(A \cup B)โ€‹ is not โ€‹n(A) + n(B)โ€‹ unless the sets are disjoint. Take away โ€‹n(A \cap B)โ€‹ once for "at least one" and twice for "exactly one".

Quick check

Do these without help. Answers are at the end.

  1. โ€‹A = \{1, 2, 3, 4\}โ€‹ and โ€‹B = \{3, 4, 5, 6\}โ€‹. Find โ€‹A \cup Bโ€‹, โ€‹A \cap Bโ€‹ and โ€‹A - Bโ€‹.
  2. Is โ€‹\{x \in \mathbb{Z} : x^2 = 2\}โ€‹ a null set?
  3. How many subsets does the set โ€‹\{a, b, c, d\}โ€‹ have?
  4. โ€‹U = \{1, 2, \dots, 8\}โ€‹, โ€‹A = \{2, 4, 6, 8\}โ€‹ and โ€‹B = \{1, 2, 3, 4\}โ€‹. Find โ€‹(A \cup B)'โ€‹.
  5. In a class of 50 students, 30 play hockey and 25 play football. Every student plays at least one of the two. How many play exactly one?

Read and watch more, free

The NCERT books for Classes 6 to 10 and the NIOS secondary course do not teach sets. The Class 11 book does; its first chapter is enough for this exam.

What Where Language
Textbook NCERT Class 11 Mathematics, Chapter 1 Sets ยท Hindi edition English, Hindi
Open textbook, read on the web OpenStax Contemporary Mathematics (Chapter 1, sets and Venn diagrams) English
The real papers UPSC previous question papers English, Hindi
Video, numbered classes Chandigarh Career Group: CDS advance maths by Sandeep Brar (the class on set theory) Hinglish
Video, one long lesson Defence Wallah CDS / AFCAT: Quantitative Aptitude CDS 2024 (the lesson on set theory, about 2 hours) Hinglish
Video, with statistics and logarithms Defence Wallah CDS / AFCAT: Maths for CDS 1, 2025 (the lesson on set theory, statistics and logarithm) Hinglish

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹A \cup B = \{1, 2, 3, 4, 5, 6\}โ€‹, โ€‹A \cap B = \{3, 4\}โ€‹, โ€‹A - B = \{1, 2\}โ€‹.
  2. Yes. โ€‹x^2 = 2โ€‹ gives โ€‹x = \sqrt{2}โ€‹ or โ€‹-\sqrt{2}โ€‹, and neither is an integer.
  3. โ€‹2^4 = 16โ€‹.
  4. โ€‹A \cup B = \{1, 2, 3, 4, 6, 8\}โ€‹, so โ€‹(A \cup B)' = \{5, 7\}โ€‹.
  5. Both: โ€‹30 + 25 - 50 = 5โ€‹. Exactly one: โ€‹50 - 5 = 45โ€‹.

Next chapter: Sequences: AP, GP and the three means.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    In a company of 90 jawans, 52 play football, 41 play hockey and 13 play neither game. How many play football only?
  2. Question 2 of 3
    โ€‹Aโ€‹ and โ€‹Bโ€‹ are finite sets with โ€‹n(A) = 12โ€‹ and โ€‹n(B) = 7โ€‹. Consider the following statements: I. The least possible value of โ€‹n(A \cup B)โ€‹ is 12. II. The greatest possible value of โ€‹n(A \cup B)โ€‹ is 18. Which of the statements given above is/are correct?
  3. Question 3 of 3
    Consider the following statements for any two sets โ€‹Aโ€‹ and โ€‹Bโ€‹ in a universal set โ€‹Uโ€‹: I. โ€‹(A \cap B)' = A' \cup B'โ€‹. II. โ€‹A - B = B - Aโ€‹. Which of the statements given above is/are correct?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the working is WishWas's own, checked against UPSC's answer key where one has been published. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.