← 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?
- A.A list of all objects created from a class
- B.The order in which Python searches classes for a method or attribute
- C.A rule that forbids multiple inheritance
- 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 →