1. Home
  2. Data Science
  3. Python
  4. How can you see a class's MRO in Python?

Added 25 Nov 2026

How can you see a class's MRO in Python?

  1. ClassName.mro_list
  2. ClassName.__bases_all__
  3. ClassName.__mro__ Correct answer
  4. dir(ClassName)

Correct answer

C. ClassName.__mro__

MCQSEXAM

Explanation

The __mro__ attribute (or mro() method) shows the resolution order.

Reference

Asked in: Python Interview OOP

https://docs.python.org/3/tutorial/classes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs