Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.17K Points
Coach

Q.) Which of these is false about recursion?

(A) recursive function can be replaced by a non-recursive function
(B) recursive functions usually take more memory space than non-recursive function
(C) recursive functions run faster than non- recursive function
(D) recursion makes programs easier to understand
Correct answer : Option (C) - recursive functions run faster than non- recursive function

Explanation:
 the speed of a program using recursion is slower than the speed of its non- recursive equivalent.

Share

Discusssion

Login to discuss.