NEW
Font size
WorksheetsLoops
Total questions: 20
Worksheet time: 18mins
What is a loop?
A loop without conditions
A loop with an if statement
In computer programming, a loop is an order of instructions that repeats for many times
When this program is run, the last pumpkin is not harvested. Why? (17-6)
You should have added another Pick Path function.
You should have used an If Conditional instead of a Why Conditional for Pumpkins.
You should have moved the pick block after the forward block
Pumpkins should be picked before corn in the Pick function.
If there were more than one corn in a square, would this code work?
Yes, because it keeps on running until there is no path ahead
No, because and if block is only read once, and then you move forward.
Should this be a loop?
No, because there is no pattern.
Yes, because every middle square has honey or nectar.
There is a zig-zag pattern at the beginning and the end of this puzzle. You should
Ignore it because only squares should be functions.
Create a zig zag function
The action of doing something over and over again.
Looping
Bugging
Programming
What is the action of doing something over and over again?
Repeat
Loop
Debugging
What does run mean?
to make a code for a program
to make a program complete an algorithm
to make a website show up on your screen
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
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
What does this code do?
Moves forward, turns, moves forward
Moves forward 2 times, turns left, moves forward 2 more times
Moves forward 4 times and turns left
Moves and turns
Can this code be written better?
Yes, by using loops (repeat blocks)
No, this is the best way to right this code
What shape does this code make?
Rectangle
Triangle
Square
Circle
In coding terms an action or event you want to repeat multiple times is called a
loop
do-over
sequence
Infinite loops are also called _________ loops.
endless
forever
never ending
A forever loop is a code pattern that repeats ___________________ .
as long as the program is running
for a set number of times
until a condition is met
An action that causes something to happen.
A loop.
A program.
An event.
