Exam 13: Recursion
Exam 1: Introduction to Computers and Programming35 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Simple functions34 Questions
Exam 4: Decision Structures and Boolean Logic35 Questions
Exam 5: Repetition Structures35 Questions
Exam 6: Value-Returning functions and Modules35 Questions
Exam 7: files and Exceptions35 Questions
Exam 8: Lists and Tuples35 Questions
Exam 9: More About Strings35 Questions
Exam 10: Dictionaries and Sets35 Questions
Exam 11: Classes and Object-Oriented Programming35 Questions
Exam 12: Inheritance35 Questions
Exam 13: Recursion35 Questions
Exam 14: GUI Programming35 Questions
Select questions type
The base case is a case in which the problem can be solved without _____.
(Multiple Choice)
4.9/5
(42)
The base case does not require _______________, so it stops the chain of recursive calls.
(Short Answer)
4.8/5
(40)
A recursion in which a function directly calls itself is known as _______________ recursion.
(Short Answer)
4.8/5
(32)
A problem can be solved with recursion if it can be broken into smaller problems that are identical in structure to the overall problem.
(True/False)
4.8/5
(45)
A recursive function must have some way to control the number of times it repeats.
(True/False)
4.9/5
(40)
If the problem can be solved immediately without recursion, then the recursive function _____.
(Multiple Choice)
4.9/5
(34)
A solution using a(n) _______________ is usually more evident than a recursive solution.
(Short Answer)
4.8/5
(33)
Some problems are _______________ solved with recursion than with a loop.
(Short Answer)
4.9/5
(48)
function A calls function B, which calls function C, which calls function A. This is called _____ recursion.
(Multiple Choice)
4.8/5
(42)
All the cases of the recursive solution other than the base case are called the _______________ case.
(Short Answer)
4.9/5
(36)
What is the first step that needs to be taken in order to apply a recursive approach?
(Multiple Choice)
4.9/5
(39)
Showing 21 - 35 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)