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

Quiz: Magic Methods and Properties · Question 1 of 10

Which method does len(obj) call?

Which method does len(obj) call?

  1. A.obj.length()
  2. B.obj.size()
  3. C.obj.len()
  4. D.obj.count()
Answer & explanation

Correct answer: obj.len()

Built-in functions call the matching dunder method.

Can you get the rest right without peeking?

Take the timed Quiz: Magic Methods and Properties quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →