1.

Is there a difference between iteration and recursion?(a) Yes(b) No(c) Yes, but only in some programming languages(d) Yes, but it depends on the version of programming language usedThe question was asked in an interview for internship.The question is from Looping topic in chapter Arduino Programming of Arduino

Answer»

Right option is (a) Yes

The explanation: Iteration is the method of executing a SET of statements repeatedly with the use of looping control structures LIKE the for-loop, while-loop, do-while loop, etc. while recursion does the same THING but without USING any looping control structures. It uses function call statements.



Discussion

No Comment Found

Related InterviewSolutions