WorksheetsCode.org 3-6quiz
Total questions: 7
Worksheet time: 14mins
Name
Class
Date
1.
Compare this code to this maze. What will the outcome be?
a)
Scrat will reach the acorn
b)
Scrat will fall into the water after his first turn.
c)
Scrat will fall into the water after his second turn.
d)
Scrat will break through the ice after his final step.
2.
Compare this code to this maze. What will the outcome be?
a)
The bird will make it to the pig.
b)
The bird will be one block short of the pig.
c)
The bird will explode by touching the 1st (lower) TNT
d)
The bird will explode by touching the 2nd (higher) TNT
3.
Which of the following loops creates the same outcome as the original code:
a)
Option A
b)
Option B
c)
Option C
d)
All of them create the same outcome, just in different ways.
e)
None of them create the same outcome as the original code.
4.
Which change will completely debug this code?
a)
Change the first "turn left" to a "turn right"
b)
Change the second "turn left" to a "turn right"
c)
Change the third "turn left" to a "turn right"
d)
None of this would debug the program- you would need to change or add more
5.
Debug this code:
What WILL happen with this code?
What is suppose to happen?
What do I need to add/remove/move to fix the problem?
4 lines
6.
Debug this code so Laurel can collect the treasure:
What WILL happen with this code?
What is suppose to happen?
What do I need to add/remove/move to fix the problem?
4 lines
7.
Lead the angry bird to the pig using the following commands: move forward ; turn right ; turn left
4 lines
100 %
