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

A Java variable is the name of a

a. data value stored in memory that can change its value but cannot change its type during the program’s execution b. data type stored in

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?