CBSE Class 12 Computer Science Question 30 of 101

Functions — Question 10

Back to all questions
10
Question

Question 10

Which of the following statements is false about recursion?

  1. Every recursive function must have a base case.
  2. Infinite recursion can occur if the base case isn't properly mentioned.
  3. A recursive function makes the code easier to understand.
  4. Every recursive function must have a return value.
Answer

Every recursive function must have a return value.

Reason — The statement "Every recursive function must have a return value" is false because recursive functions in Python don't necessarily have to return a value.