1. Home
  2. Data Science
  3. Python
  4. What is the default recursion limit in CPython?

Added 25 Nov 2026

What is the default recursion limit in CPython?

  1. 100
  2. 1000 Correct answer
  3. 10000
  4. Unlimited

Correct answer

B. 1000

5 views

MCQSEXAM

Explanation

sys.getrecursionlimit() returns 1000 by default.

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