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

Quiz: Inheritance, ABC and MRO · Question 4 of 10

What is the MRO?

What is the MRO?

  1. A.A list of all objects created from a class
  2. B.The order in which Python searches classes for a method or attribute
  3. C.A rule that forbids multiple inheritance
  4. D.The memory layout of an object
Answer & explanation

Correct answer: The order in which Python searches classes for a method or attribute

Method Resolution Order; see it with ClassName.mro.

Can you get the rest right without peeking?

Take the timed Quiz: Inheritance, ABC and MRO quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →