🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: itertools and functools: all 10 questions

Quiz: itertools and functools · Question 1 of 10

How many items does combinations("ABCD", 2) produce?

How many items does combinations("ABCD", 2) produce?

  1. A.4
  2. B.6
  3. C.12
  4. D.16
Answer & explanation

Correct answer: 6

4C2 = 4 × 3 / 2 = 6 unordered pairs.

Can you get the rest right without peeking?

Take the timed Quiz: itertools and functools quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →