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

I had been asked this question during a job interview.

Asked question is from Recursion topic in division Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python

Python Argument Passing in Python . 3 years ago

  1.93K   0   0   0   0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Correct CHOICE is (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.

Posted on 03 Dec 2021, this text provides information on Python related to Argument Passing in Python. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Tuteehub forum answer Answers

Post Answer

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.