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 UNTIL count = 3 | AREPEAT UNTIL points = 5 | |
| 2count ← count + 1 | BKeep repeating the steps until the counter reaches 3, for example when the player has had 3 wrong answers | |
| 3A game ends when the player reaches 5 points, so the loop stops once the score counter equals 5 | CThe counter goes up every time, even when the answer is right. It should only add 1 to wrong when the answer is wrong, using an IF. | |
| 4The counter is changed inside the loop so it can reach the stopping number | DAdd 1 to the counter each time round, so the loop moves closer to its stopping number | |
| 5count ← 0 REPEAT UNTIL count = 3 SAY "Try again" | EREPEAT UNTIL count = 5 SAY "Go!" count ← count + 1 | |
| 6REPEAT UNTIL wrong = 3 ASK question wrong ← wrong + 1 | FThe counter never changes inside the loop, so count stays at 0 and the loop never stops. Add count ← count + 1 inside the loop. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
REPEAT UNTIL count = 5 — A loop that keeps repeating its steps until the counter reaches the chosen number, 5. The counter must change inside the loop, or the loop never stops.SET count TO 0
REPEAT UNTIL count = 5
SET count TO count + 1SET wrong TO 0
REPEAT UNTIL wrong = 3
IF answer is wrong, ADD 1 to wrongSET points TO 0
REPEAT UNTIL points = 5
SET points TO points + 1SET count TO 0
REPEAT UNTIL count = 5
SET count TO count + 1SET wrong TO 0
REPEAT UNTIL wrong = 3
IF answer is wrong, ADD 1 to wrong