Exam 12: Recursion
Exam 1: Introduction to Computers and Programming36 Questions
Exam 2: Input, Processing, and Output35 Questions
Exam 3: Decision Structures and Boolean Logic35 Questions
Exam 4: Repetition Structures34 Questions
Exam 5: Functions and Modules69 Questions
Exam 6: Files and Exceptions34 Questions
Exam 7: Lists and Tuples35 Questions
Exam 8: More About Strings35 Questions
Exam 9: Dictionaries and Sets35 Questions
Exam 10: Classes and Object Oriented Programming35 Questions
Exam 11: Inheritance35 Questions
Exam 12: Recursion35 Questions
Exam 13: GUI Programming35 Questions
Select questions type
Recursive function calls are _______________ efficient than loops.
Free
(Short Answer)
4.8/5
(83)
Correct Answer:
less
A problem can be solved with recursion if it can be broken into smaller problems that are identical in structure to the overall problem.
Free
(True/False)
4.9/5
(76)
Correct Answer:
True
A problem can be solved with recursion if it can be broken down into _____ problems.
Free
(Multiple Choice)
4.8/5
(75)
Correct Answer:
A
If a recursive solution is evident for a particular problem, and the recursive algorithm does not slow system performance by an intolerable amount, then recursion would be a good design choice.
(True/False)
4.9/5
(81)
Each time a function is called, the system incurs overhead that is not necessary with a loop.
(True/False)
4.8/5
(71)
A recursive function includes _____ which are not necessary in a loop structure.
(Multiple Choice)
5.0/5
(83)
What is the first step that needs to be taken in order to apply a recursive approach?
(Multiple Choice)
5.0/5
(80)
Usually, a problem is reduced by making the value of one or more parameters _______________ with each recursive call.
(Short Answer)
4.9/5
(93)
A solution using a(n) _______________ is usually more evident than a recursive solution.
(Short Answer)
4.9/5
(69)
What is the second step that needs to be taken in order to apply a recursive approach?
(Multiple Choice)
4.8/5
(84)
Each time a function is called, the system incurs _______________ that is not necessary with a loop.
(Short Answer)
4.9/5
(76)
The base case is a case in which the problem can be solved without _____.
(Multiple Choice)
4.8/5
(78)
A recursive function must have some way to control the number of times it repeats.
(True/False)
4.8/5
(84)
Recursive algorithms are more concise and efficient than iterative algorithms.
(True/False)
4.9/5
(69)
Some problems are _______________ solved with recursion than with a loop.
(Short Answer)
4.7/5
(80)
Showing 1 - 20 of 35
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)