KnowledgeBoat Logo

Computer Science

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.

Python Functions

2 Likes

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.

Answered By

2 Likes


Related Questions