Multiple choice

What is a base case?

  1. The point at which the recursion loop will stop

  2. The element of a program that can be represented recursively

  3. An error causing the recursion loop to stop

  4. A for loop

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In recursion, the base case is the condition that terminates the recursive calls. Without it, the function would call itself indefinitely, leading to a stack overflow error.