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 score to 0 | Aset lives to 3 | |
| 2change score by 1 | Bchange lives by -1 | |
| 3Counting down: take 1 life away each time the player is hit | CThe score was never set to 0 at the start, so it keeps the old value from the last game and the count will be wrong. Add set score to 0 first. | |
| 4Setting at the start: give lives a starting value of 3 when the game begins | DAdds 1 to the number already stored in score, so the score counts up. | |
| 5when green flag clicked change score by 1 (no set block first) | EThe set block replaces the score with 1 every time instead of adding to it. Use change score by 1 to count up. | |
| 6set score to 1 (used to add a point each time a coin is touched) | FStores the starting value 0 in the score variable, so the game begins with a score of zero. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
set score to 0 — A variable block that stores a starting value in score. Use change score by 1 to add to it, or by -1 to take away, so the score counts up or down.set score to 0
change score by 1when green flag clicked
set score to 0when space key pressed
change score by 1set lives to 3
change lives by -1when this sprite clicked
change score by 1