Important Python Mcqs

Which of the following statements is false about recursion?

(a) Every recursive function must have a base case

(b) Infinite recursion can occur if the base case isn’t properly mentioned

(c) A recursive function makes the code easier to understand

(d) Every recursive function must have a return

Answer:

(d) Every recursive function must have a return

Explanation:

A recursive function need not have a return value.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?