Exam 7: Recursive Algorithms
Exam 9: Making Animated Movies With Alice50 Questions
Exam 8: Lists and Arrays in Alice50 Questions
Exam 7: Recursive Algorithms50 Questions
Exam 6: Text and Sound46 Questions
Exam 5: Boolean Logic in Programming50 Questions
Exam 4: Algorithms50 Questions
Exam 3: Events50 Questions
Exam 2: Methods50 Questions
Exam 10: Video Game Programming50 Questions
Exam 1: An Introduction to Alice and Object-Oriented Programming50 Questions
Select questions type
An understanding of recursion is essential to programming any algorithm.
Free
(True/False)
4.8/5
(26)
Correct Answer:
False
A properly structured recursive algorithm should always contain a Boolean expression in a selection sequence.
Free
(True/False)
4.9/5
(30)
Correct Answer:
True
The power of recursion in computer programming is the way in which computer scientists use recursive algorithms to analyze and solve complex problems.
Free
(True/False)
4.9/5
(43)
Correct Answer:
True
____ occurs when an algorithm does not contain any instructions about when to stop the recursion.
(Multiple Choice)
4.8/5
(42)
The term ____ implies that an algorithm calls itself repeatedly without stopping.
(Multiple Choice)
4.9/5
(33)
The pseudocode for a recursive method is shown below. What statement is missing from the area labeled (c)?
Sailboat.sail to (target)
(a)
If ( not [sailboat is within 5 meters of target] )
{
Do together
{
Sailboat.turn to face target
Sailboat.move forward 2 meters
}
(b)
}
(c)
(Multiple Choice)
4.8/5
(44)
The pseudocode for a recursive method is shown below. What statement is missing from the area labeled (b)?
Biplane.taxi (target)
(a)
If ( [biplane.distance to target] > 1 meter)
{
Biplane.point at target
Biplane.move forward 1 meter
(b)
}
(c)
(Multiple Choice)
5.0/5
(35)
The computer must set up a section in its memory every time a new method is called - except when the new method is a copy of an existing method.
(True/False)
4.7/5
(39)
The term ____ is used to describe the processor time and storage space in a computer's memory needed to manage a method as it runs.
(Multiple Choice)
4.7/5
(36)
Generally, a method that uses exponential recursion is often very easy to replace with a more efficient iterative solution.
(True/False)
4.8/5
(34)
In Alice, clicking on the ____ button allows you to enter Scene Editor mode.
(Multiple Choice)
4.8/5
(42)
Exponentially recursive algorithms are often far more efficient than iterative solutions because they can repeatedly break a problem into several smaller parts and then attack those smaller parts in a way that an iterative algorithm cannot.
(True/False)
4.8/5
(31)
In conditional exponentially recursive algorithms, the recursive step breaks the problem into smaller parts, and then calls the algorithm itself for each of those parts, continuing to do so until the base case is reached.
(True/False)
4.8/5
(44)
The recursive Sierpinski gasket algorithm is an example of ____ because it calls itself three times.
(Multiple Choice)
4.7/5
(36)
The pseudocode for a recursive method is shown below. What statement is missing from the area labeled (a)?
Biplane.taxi (target)
(a)
If ( [biplane.distance to target] > 1 meter)
{
Biplane.point at target
Biplane.move forward 1 meter
(b)
}
(c)
(Multiple Choice)
5.0/5
(44)
A(n) ____ is one that uses a loop to repeat a set of instructions.
(Multiple Choice)
4.8/5
(29)
Many of the most important algorithms in computing - such as those used to search large databases quickly - depend on the use of recursion.
(True/False)
4.8/5
(40)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)