Questions: Recursion Basics

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

What happens when a recursive function is called without a valid base case?

AThe function returns None automatically
BThe function runs once and exits
CThe call stack grows without bound until the program crashes with a stack overflow
DThe compiler detects the infinite loop and refuses to run the code
Question 2 True / False

A recursive solution to a problem is generally faster and uses less memory than an equivalent iterative solution.

TTrue
FFalse
Question 3 Short Answer

Explain what the call stack is doing during a recursive computation, and why each call needs its own stack frame.

Think about your answer, then reveal below.