1. Home
  2. Data Science
  3. Python
  4. What exception is raised when the recursion limit is…

Added 25 Nov 2026

What exception is raised when the recursion limit is exceeded in Python?

  1. OverflowError
  2. MemoryError
  3. StackError
  4. RecursionError Correct answer

Correct answer

D. RecursionError

6 views

MCQSEXAM

Explanation

Python raises RecursionError when the maximum recursion depth is exceeded.

Reference

Asked in: Python Interview Functions

https://docs.python.org/3/tutorial/controlflow.html#defining-functions

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? 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