Chapter 12 Recursion Flashcards
A recursive function must have some way to control the number of times it repeats.
True or False?
True
Chapter 1 2Q
Which of the following describes the base case in a recursive solution?
a. the case in which the problem is solved through recursion
b. a case in which the problem can be solved without recursion
c. the way to return the main function
d. the way to stop the recursion
a case in which the problem can be solved without recursion
Each time a function is called in a recursive solution, the system incurs overhead that is not incurred with a loop.
True or False?
True
Recursive algorithms are always more concise and efficient than iterative algorithms.
True or False
False