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 5 TIMES | AEND REPEAT is missing, so there is no sign of where the loop stops. Add END REPEAT after Stamp. | |
| 2END REPEAT | BREPEAT 2 TIMES Jump END REPEAT Sit down | |
| 3To clap 3 times, put the number 3 in the loop and indent the clap step | CREPEAT 3 TIMES Clap END REPEAT | |
| 4A step written after END REPEAT runs only once, after the loop has finished | DThe step inside the loop is not indented, so it is not clear which step gets repeated. Indent Step forward under REPEAT 4 TIMES. | |
| 5REPEAT 4 TIMES Step forward END REPEAT | EMarks the place where the loop stops and shows the steps inside are finished | |
| 6REPEAT 6 TIMES Stamp Sit down | FRuns the indented steps under it exactly 5 times, then moves on to the next step |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
REPEAT n TIMES — Runs the indented steps under it exactly n times, then moves on to the next step. Use END REPEAT to show where the loop stops. Example: REPEAT 5 TIMES.REPEAT 3 TIMES
Jump
END REPEATREPEAT 5 TIMES
Draw a side and turn
END REPEATREPEAT 4 TIMES
Hop forward
END REPEATREPEAT 6 TIMES
Roll the dice
END REPEATREPEAT 3 TIMES
Knock on the door
END REPEAT