- Which of the following defined the recursion most correctly:
- A function that calls itself
- A function execution instance that calls another execution instance of the same function
- A class method that calls another class method
- An in-built method that is automatically called
- Recursion is similar to which of the following?
- switch-case
- loop
- if-else
- None of these
- What are the two cases that all the recursive functions should have? Write the name of both.
- What is the base case for a recursive function?
- When does infinite recursion occur?
No comments:
Post a Comment