🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Sets and Venn Diagrams: all 15 questions

Quiz: Sets and Venn Diagrams · Question 10 of 15

In a class of 45, 25 take Java and 28 take Python. Every student takes at least one. How many take only Java?

In a class of 45, 25 take Java and 28 take Python. Every student takes at least one. How many take only Java?

  1. A.17
  2. B.8
  3. C.20
  4. D.25
Answer & explanation

Correct answer: 17

Both = 25 + 28 − 45 = 8. Only Java = 25 − 8 = 17.

Can you get the rest right without peeking?

Take the timed Quiz: Sets and Venn Diagrams quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →