1.

Recursion and iteration are the same programming approach.(a) True(b) FalseI got this question by my college professor while I was bunking the class.The query is from Recursion topic in chapter Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python

Answer»

Correct OPTION is (b) False

Explanation: In recursion, the function calls itself till the base CONDITION is reached whereas iteration means repetition of process for EXAMPLE in for-loops.



Discussion

No Comment Found

Related InterviewSolutions