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
After reading the specifications for a project, a good programmer should put together a set of questions for the person who provided the specifications.
(True/False)
4.8/5
(28)
The pseudocode for an iterative method is shown below. What statement is missing from the area labeled (b)?
Sailboat.sail to (target)
(a) ( not [sailboat is within 5 meters of target] )
{
Do together
{
Sailboat.turn to face target
Sailboat.move forward 2 meters
}
}
(b)
(Multiple Choice)
4.9/5
(37)
Seemingly random events, such as an electronic interference in a telephone circuit, can be described using recursive functions.
(True/False)
4.9/5
(35)
A method that uses linear recursion can very quickly generate many copies of itself to work simultaneously on smaller examples of the overall problem.
(True/False)
4.9/5
(37)
An object is really just a set of instructions describing how to complete a process.
(True/False)
4.9/5
(32)
Often it is better to use recursion instead of iteration for methods that can be written using a simple loop.
(True/False)
4.8/5
(36)
In Alice, the ____ button can be used if you are unhappy with one of your moves.
(Multiple Choice)
4.8/5
(43)
The following short story is considered to be recursive:
Once upon a time a young princess was sitting with her father, the king. She said to her father, "My Royal Father, can you read me a story?"
Yes, my Royal Daughter," said the king, as he opened the Royal Storybook. He began to read, "Once upon a time a young princess was sitting with her father, the king. She said to her father, 'My Royal Father, can you read me a story?'"
"Yes, my Royal Daughter," said the king, as he opened the Royal Storybook. He began to read, "Once upon a time a young princess was sitting with her father, the king. She said to her father, 'My Royal Father, can you read me a story?' . . ."
(True/False)
4.8/5
(44)
The Sierpinski gasket algorithm splits the triangle into four smaller triangles, and then calls itself for three of the four smaller triangles.
(True/False)
4.9/5
(48)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)