1. Home
  2. Data Science
  3. Python
  4. What algorithm does Python use to compute MRO?

Added 25 Nov 2026

What algorithm does Python use to compute MRO?

  1. C3 linearization Correct answer
  2. Depth-first only
  3. Breadth-first only
  4. Random order

Correct answer

A. C3 linearization

7 views

MCQSEXAM

Explanation

Python 3 uses C3 linearization for consistent method resolution.

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 A? 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