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 <score = 10> | Arepeat until <answer = 7> ask [What is 3 + 4?] | |
| 2repeat until <touching edge?> | Brepeat until <lives = 0> change lives by -1 | |
| 3To avoid an endless loop, something inside the loop must change so the condition can become true | CCount goes down (0, -1, -2...) and moves away from 5, so the condition never becomes true. | |
| 4The condition is checked each time before the blocks inside run again | DNothing inside the loop changes count, so count = 5 never becomes true and the loop never ends. | |
| 5set count to 0 repeat until <count = 5> move 10 steps | EKeeps running the blocks inside until the score becomes 10, then stops | |
| 6set count to 0 repeat until <count = 5> change count by -1 | FKeeps repeating the blocks inside until the sprite touches the edge of the stage |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
repeat until <condition> — A loop block that keeps running the blocks inside it again and again, checking the condition each time, and stops only when the condition becomes true.repeat until <(steps) = 10>
move (5) steps
endrepeat until <(score) > 9>
change [score] by 2
endrepeat until <(lives) = 0>
change [lives] by -1
endrepeat until <(count) = 5>
change [count] by 1
endrepeat until <(answer) = [yes]>
ask [Ready?] and wait
end