Q
What happens when a recursive Python function has no reachable base case?
-
A
RecursionError (maximum recursion depth exceeded)
-
B
SyntaxError
-
C
It returns None
-
D
It loops forever without any error
Correct Answer:
A. RecursionError (maximum recursion depth exceeded)
Explanation:
Each call adds a stack frame. CPython stops at its recursion limit, which defaults to about 1000.