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 | |
|---|---|---|
| 1SET count TO 0 | ASET count TO 0 REPEAT 5 TIMES ADD 1 TO count SHOW count | |
| 2ADD 1 TO count | BSHOW count | |
| 3Show how many times the loop ran by displaying the counter after the loop has finished | CMakes the counter go up by one. It goes inside the loop so it grows each time the loop repeats. | |
| 4A counter starts at 0, then goes up by 1 each time the loop repeats, then the total is shown at the end | DMakes a counter that starts at zero. It goes before the loop so the count begins fresh. | |
| 5REPEAT 5 TIMES SET count TO 0 ADD 1 TO count SHOW count | ESET count TO 0 is inside the loop, so the counter resets to 0 on every repeat. It must go before the loop so the count can build up. | |
| 6SET count TO 0 REPEAT 5 TIMES SHOW count ADD 1 TO count | FADD 1 TO count is after the loop and SHOW count is inside it. The counter should go up inside the loop and be shown after the loop. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
SET count TO 0 — Makes a counter. Set count to 0 before the loop, ADD 1 TO count inside the loop each time it repeats, then SHOW count after the loop.SET count TO 0
REPEAT 5 TIMES
ADD 1 TO countSET count TO 0
REPEAT 5 TIMES
ADD 1 TO countSET count TO 0
REPEAT 4 TIMES
ADD 1 TO countSET count TO 0
REPEAT 6 TIMES: ADD 1 TO count
SHOW countSET count TO 0
REPEAT 3 TIMES
ADD 1 TO count