Q.

Which is the most appropriate definition for recursion?

A. a function that calls itself
B. a function execution instance that calls another execution instance of the same function
C. a class method that calls another class method
D. an in-built method that is automatically called
Answer» B. a function execution instance that calls another execution instance of the same function
Explanation: the appropriate definition for a recursive function is a function execution instance that calls another execution instance of the same function either directly or indirectly.
2.2k
0
Do you find this helpful?
2

Discussion

No comments yet