Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) 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 value
Correct answer : Option (D) - every recursive function must have a return value

Explanation:
 a recursive function needn’t have a return value.

Share

Discusssion

Login to discuss.