GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeLogical reasoning · Visual and Diagrammatic Reasoning

Logical Venn Diagrams

Model classes as overlapping circles, read the seven regions, and use the set-counting and inclusion-exclusion formulas to answer relationship and region-count questions.

5 min read 45 questions
Practice questions

On this page

1/9
  1. 011. What a Venn-diagram question tests
  2. 022. Reading a two-circle diagram
  3. 033. The two-set formula
  4. 044. The seven regions of a three-circle diagram
  5. 055. Inclusion–exclusion for three sets
  6. 066. Only, exactly-two and at-least-two
  7. 077. Choosing the best diagram
  8. 088. Traps and revision
  9. 09Practice
Back to top

1. What a Venn-diagram question tests

A Venn diagram draws each class as a circle; where circles overlap, the members belong to both classes. Placement tests use them in two ways. First, the relationship type: you are given three everyday classes and must pick the diagram whose circles sit the way those classes really relate. Second, the counting type: you are given head-counts for a survey and must read or compute how many fall in a particular region.

Both types reward the same habit: name every region before you touch the numbers. A two-circle picture has three inside regions (only A, both, only B) plus the outside (neither). A three-circle picture has seven inside regions plus the outside. Once you can point to the region a question asks for, the rest is addition and subtraction.

2. Reading a two-circle diagram

Every head belongs to exactly one region. The circle labelled Tea holds everyone who drinks tea, split into "only tea" and "tea and coffee"; the overlap is shared with the Coffee circle; the outside holds those who drink neither.

TeaCoffee452025None 10
A survey of 100 people. The four regions add up to the whole survey.

From this picture, n(Tea) = 45 + 20 = 65, n(Coffee) = 25 + 20 = 45, those who drink at least one = 45 + 20 + 25 = 90, and those who drink neither = 10. Notice that a circle total already includes the overlap, so you never add the overlap twice.

Golden rule: the number written in a region counts only that region. A circle "total" is the sum of all the regions inside that circle, not a number printed anywhere on the diagram.

3. The two-set formula

When you are given circle totals instead of region counts, use

  • n(A ∪ B) = n(A) + n(B) − n(A ∩ B) — subtract the overlap once, because it was counted in both totals.
  • Total surveyed = n(A ∪ B) + n(neither).

Worked example. In a group of 100 people, 65 drink tea, 45 drink coffee and 10 drink neither. How many drink both? At least one = 100 − 10 = 90. Then both = n(Tea) + n(Coffee) − n(at least one) = 65 + 45 − 90 = 20.

The commonest mistake is to forget the "neither" group and compute n(A) + n(B) − total. Always convert the grand total into n(A ∪ B) first by removing the people who are in neither circle.

4. The seven regions of a three-circle diagram

Three overlapping circles cut the plane into seven inside regions: three "only" regions, three "exactly two" regions, and the central "all three" region. Label them before reading any number.

CricketHockeyTennis2015108654None 12
80 students and the three sports they play; the centre 4 play all three.

Here the centre is 4 (play all three). The pairwise overlaps shown are 8 (cricket and hockey only), 6 (cricket and tennis only) and 5 (hockey and tennis only). So n(Cricket) = 20 + 8 + 6 + 4 = 38, and the number who play at least one = 68.

Be careful with wording. "Play cricket and hockey" means the whole Cricket-Hockey overlap, which includes the centre: 8 + 4 = 12. "Play only cricket and hockey" means just 8.

5. Inclusion–exclusion for three sets

When you are given circle totals and overlap totals rather than the seven regions, the master formula is

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A∩B) − n(A∩C) − n(B∩C) + n(A∩B∩C).

Worked example. With n(Cricket) = 38, n(Hockey) = 32, n(Tennis) = 25, n(C∩H) = 12, n(C∩T) = 10, n(H∩T) = 9 and n(all three) = 4: at least one = 38 + 32 + 25 − 12 − 10 − 9 + 4 = 68.

The subtractions remove each pairwise overlap, but doing so takes out the central group one time too many, so it is added back at the end. Each pairwise total n(A∩B) already contains the centre — remember that whenever a question mixes "A and B" with "all three".

6. Only, exactly-two and at-least-two

Many hard questions ask not for a circle total but for a combination of regions. Read them straight off the seven regions, or convert the overlap totals:

Asked forFrom the 7 regionsFrom overlap totals
Only Athe A-only regionn(A) − n(A∩B) − n(A∩C) + n(A∩B∩C)
Exactly onethe three "only" regionsadd the three "only A/B/C" values
Exactly twothe three pairwise-only regionsn(A∩B)+n(A∩C)+n(B∩C) − 3·n(A∩B∩C)
At least twothe pairwise-only regions + centren(A∩B)+n(A∩C)+n(B∩C) − 2·n(A∩B∩C)

With the sports numbers: exactly one = 20 + 15 + 10 = 45; exactly two = 8 + 6 + 5 = 19; at least two = 19 + 4 = 23. The "−3·centre" and "−2·centre" shortcuts matter only when you start from overlap totals, because each such total secretly carries the centre.

7. Choosing the best diagram

For relationship questions, decide the relation between each pair of classes and then match it to a standard picture. Only three relations are possible for a pair:

  • Subset — every member of one is a member of the other (every dog is an animal). Draw one circle inside the other.
  • Disjoint — no member is shared (no dog is a cat). Draw separate circles.
  • Overlap — some but not all shared (some doctors are women). Draw crossing circles.
StationeryPenPencil
Pen, Pencil, Stationery: two disjoint classes that both lie inside a third.

Common finished shapes: three separate circles (dog, cat, cow); one inside another inside a third (boy, student, school); two separate circles inside a big one (pen, pencil, stationery); and two separate circles with a third crossing both (men, women, doctors). Build the picture from the pairwise relations rather than guessing from how the words sound.

8. Traps and revision

  • Forgetting the "neither" group: convert the grand total to n(A ∪ B) before using the overlap formula.
  • Reading a circle total as a region: n(A) already includes every overlap that touches A.
  • Double-counting the centre: in three sets, subtract the triple overlap the right number of times for "exactly two" vs "at least two".
  • Confusing "A and B" (the whole overlap, centre included) with "only A and B" (centre excluded).
  • Picking a diagram from word-feel: test each pair for subset / disjoint / overlap first.
You are askedDo this
Both (2 sets)n(A) + n(B) − n(A ∪ B)
Neithertotal − n(A ∪ B)
At least one (3 sets)inclusion–exclusion: +singles − pairs + triple
Only An(A) − n(A∩B) − n(A∩C) + n(A∩B∩C)
Exactly twosum of pair overlaps − 3 × triple
At least twosum of pair overlaps − 2 × triple
Best diagramclassify each pair, then draw

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousAssertion and ReasonNextCubes and Dice
Log inStart free