WorksheetsCode.org Express Course conditionals
Total questions: 18
Worksheet time: 11mins
How many times will the bee collect nectar if it follows the entire path?
5
7
8
6
Solve the puzzle
The following blocks will allow the bee to eat all the nectar.
True
False
Another term for an "if-else" statment is
loops
function
conditional
algorithm
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
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
The cloud is blocking the view. There could be a flower under this cloud. If there is a flower, the bee will need to collect nectar once. If there is not a flower the bee should do nothing. Take a good look at the code below. What do you think will happen after you click "Run"?
The bee will move to the cloud and try to get nectar, no matter what.
The bee will move to the cloud and only try to get nectar if there is a flower underneath.
The bee will move to the cloud and then do nothing, no matter what.
The bee will not reach the cloud.
Which of these problems will this code solve?
All of these
None of these
Which of these are conditionals? (They only run under certain conditions). Select all that apply.
All of these
Use the if/else block to collect nectar at flowers and make honey at honeycomb. Remember: if there is a flower, the bee only needs to get nectar once. If there is a honeycomb, the bee only needs to make honey once.
None of these
Which of these describes the block shown?
When something happens, start this algorithm.
If the statement is true do this code.
If the statement is true do this code. If the statement is false, do something else.
Repeat this code a certain number of times.
All of these
Which of these describes the block shown?
When something happens, start this algorithm.
If the statement is true do this code.
If the condition is true do this code. If the statement is false, do something else.
Repeat this code a certain number of times.
All of these
Which of these describes the block shown?
When something happens, start this algorithm.
If the statement is true do this code.
If the condition is true do this code. If the statement is false, do something else.
Repeat this code a certain number of times.
All of these
Which of these describes the block shown?
When something happens, start this algorithm.
If the statement is true do this code.
If the condition is true do this code. If the statement is false, do something else.
Repeat this code a certain number of times.
All of these
finding and fixing problems in an algorithm or program
bug
conditionals
variable
debugging
part of a program that does not work correctly
bug
variable
debugging
try
Use loops to draw this staircase.
Each stair step is 50 pixels long and 50 pixels tall
You will need to turn 90 degrees in each direction
