NEW
Font size
WorksheetsActivity 23: Conditionals Quiz
Total questions: 12
Worksheet time: 7mins
Conditionals let your program
Repeat code to increase efficiency
Make decisions to follow a different path
Run in the right order
Give a set of commands a custom name
In this scenario it is raining. Is the conditional true or false and what will we do in this scenario.
true, we will stay indoors
true, we will go outside
false, we will stay indoors
false, we will go outside
After three moves, the bee is not on nectar. Will the bee collect nectar?
No, the code skips get_nectar()
Yes, the code runs get_nectar()
An error in a program that prevents the program from running as expected.
bug
debugging
for loop
binary
Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?
Remove a move forward block
Add a move forward block
Change the first turn block to left
Change the second turn block to left
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
Another term for an "if-else" statment is
loops
function
conditional
algorithm
In this code, the condition that needs to be checked is
repeat 2 times
if at flower
get nectar
move forward
In this section of code, if the bee is on a honeycomb, what will happen?
The bee will make honey.
The bee will move forward twice
The bee will get nectar.
You can't tell from this code
In order for the "while there is a hole" loop to STOP running
the sprite will have filled the hole once
the sprite will have moved forward 6 times
the statement "while there is a hole" will be true
the statement "while there is a hole" will be false
Which type of loop iterates until condition become False?
FOR loop
A count-controlled loop
Repeat-once loop
WHILE loop
A while loop is
A repeat loop with an if statement that stops when something is false
A repeat loop with an if statement that stops when something is true
