NEW
Font size
WorksheetsConditionals Code.org
Total questions: 21
Worksheet time: 16mins
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
What shape does this code make?
Rectangle
Triangle
Square
Circle
Can this code be written better?
Yes, by using loops (repeat blocks)
No, this is the best way to right this code
statements that only run under certain conditions
conditionals
paramenter
reflect
variable
A list of steps to finish a task.
Algorithm
Program
Bug
Is there more than one way to code a puzzle?
No
No, but you can make up your own design
Yes
Yes, but it will be counted wrong
If you weren't able to complete a challenge the first time you should
pout
give up
try again
bang on the keyboard
The three blocks that should be placed in the if else block to get the acorn.
Turn right, move forward, turn right, turn left
Turn left, move forward, turn right, turn left
Move forward, turn left, turn right, turn left
Move forward, turn right, turn left
The block needed in placed of the else block to get the acorn.
Turn left
Move forward
Jump back
Turnright
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
What is the value of a at the end of this animation/code?
11
13
10
9
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
