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 | AThe loop body is not clearly shown. The steps to repeat should be indented under REPEAT so we know which steps are in the loop. | |
| 2REPEAT 3 TIMES clap | BThe loop body is the clap step, because it is the part that gets repeated | |
| 3Loops save effort: one loop does the work of writing the same steps many times | CIteration: the steps inside are repeated 4 times, so you don't write them out four times | |
| 4Spotting repeated steps: the same steps appear over and over, so they can go in a loop | DThe same step is written out again and again. A loop like REPEAT 5 TIMES with wave inside would save effort. | |
| 5REPEAT 3 TIMES clap stomp | Estep forward step forward step forward | |
| 6wave wave wave wave wave | FREPEAT 5 TIMES jump |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
iteration — Repeating a set of steps instead of writing them out again and again. The repeated steps are called the loop body. Loops save effort.REPEAT 4 TIMES
clap
END REPEAT// Stomp 5 times
REPEAT 5 TIMES
stomp// Clap 3 times
REPEAT 3 TIMES
clapREPEAT 6 TIMES
jump
END REPEATREPEAT 3 TIMES
spin
END REPEAT