Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1REPEAT 4 TIMES Clap END REPEAT | AThe steps were written out AND put in a loop. This does the pattern twice as often, so the loop should replace the repeated steps, not be added to them. | |
| 2Step forward, Step back, Step forward, Step back | BThe loop count does not match the original. Spin was written 4 times, so it must be REPEAT 4 TIMES to get the same result. | |
| 3Drawing a square has the same two steps four times, so one loop can replace them. | CREPEAT 4 TIMES Draw line Turn right 90 END REPEAT | |
| 4Setting a table for 3 people repeats the same steps, so one loop makes the algorithm shorter. | DOne loop that replaces Clap, Clap, Clap, Clap. It is shorter and gives the same result. | |
| 5REPEAT 2 TIMES Spin END REPEAT (original: Spin 4 times) | EREPEAT 3 TIMES Put down plate Put down fork END REPEAT | |
| 6Draw line, Turn 90, Draw line, Turn 90 REPEAT 2 TIMES Draw line Turn 90 END REPEAT | FA repeating pattern: the pair Step forward, Step back appears twice, so a loop could replace it. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
repeating pattern — Same steps that appear again and again. Replace them with one loop to make the algorithm shorter, with the same result.REPEAT 3 TIMES
clap
END REPEATREPEAT 4 TIMES
draw line, turn right 90
END REPEATREPEAT 4 TIMES
put plate, put fork
END REPEATREPEAT 6 TIMES
hop
END REPEATREPEAT 3 TIMES
draw line, turn right 120
END REPEAT