🎙 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 8 of 10

What does partial(int, base=2)("110") return?

What does partial(int, base=2)("110") return?

  1. A.110
  2. B."6"
  3. C.6
  4. D.An error
Answer & explanation

Correct answer: 6

The base is pre-filled, so "110" is read as binary: 6.

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 →