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 | |
|---|---|---|
| 1Run one script at a time | Aif score < 10 then say You win! | |
| 2Show variable score | BTest a single script on its own so you can tell which script is causing the wrong result | |
| 3A wrong block order bug: the sprite should say 'Ready!' after it moves, but it says it before | CDisplay the value of the variable on the stage so you can check if it changes the way you expect | |
| 4A wrong condition bug: the sprite should only celebrate when the score is more than 10, but it celebrates at 3 | DThe blocks are in the wrong order. Set score to 0 should come first so the game starts fresh. | |
| 5when green flag clicked, say Go! , set score to 0, move 10 steps (the score never resets before the game starts) | Esay Ready! for 2 seconds, then move 50 steps | |
| 6repeat until lives = 10 (the game never ends because lives starts at 3 and goes down) | FThe condition is wrong. The loop should repeat until lives = 0, so it can actually stop. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
debugging — Finding the block that causes a wrong result in a program and fixing it, such as a block in the wrong order or a wrong condition.set score to 0
change score by 1
say score for 2 secondsshow variable score
change score by 1
say score for 2 secondsif score > 10 then
say You win!
endwhen green flag clicked
stop other scripts in spriterepeat until lives = 0
change lives by -1
end