Exam 19: Recursion
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
A ________ function is one that calls itself
Free
(Multiple Choice)
4.7/5
(73)
Correct Answer:
C
The programmer must ensure that a recursive function does not become:
Free
(Multiple Choice)
4.8/5
(90)
Correct Answer:
C
How many times will the following function call itself, if the value 5 is passed as the argument?

Free
(Multiple Choice)
4.8/5
(77)
Correct Answer:
D
Any algorithm that can be coded with recursion can also be coded with an iterative structure.
(True/False)
4.7/5
(83)
The ________ algorithm uses recursion to efficiently sort a list.
(Multiple Choice)
4.9/5
(78)
A recursive function is designed to terminate when it reaches its ________.
(Multiple Choice)
4.7/5
(76)
Indirect recursion means that a function calls itself n number of times, then processing of the function starts from the first call.
(True/False)
4.9/5
(75)
Like a loop, a recursive function must have some method to control the number of times it repeats.
(True/False)
5.0/5
(75)
When recursion is used on a linked list, it will always display the contents of the list in reverse order.
(True/False)
4.9/5
(78)
If a recursive function does not contain a base case, it ________.
(Multiple Choice)
4.9/5
(70)
The recursive factorial function calculates the factorial of its parameter. Its base case is when the parameter is ________.
(Multiple Choice)
5.0/5
(84)
Recursive algorithms are less efficient than iterative algorithms.
(True/False)
4.8/5
(59)
The ________ of recursion is the number of times a recursive function calls itself.
(Multiple Choice)
4.9/5
(67)
When a recursive function directly calls itself, this is known as direct recursion.
(True/False)
4.9/5
(67)
When function A calls function B, which in turn calls function A, this is known as:
(Multiple Choice)
4.9/5
(71)
Showing 1 - 20 of 22
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)