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 | |
|---|---|---|
| 1forever | AThe forever block is inside the if block, so the check only happens once. If the sprite is not touching the edge at that moment, nothing repeats. The if block should go inside forever. | |
| 2stop all | BThe stop all block is placed after forever, so it never runs because forever never finishes. Put stop all inside an if block inside the forever loop. | |
| 3Keep checking whether the player has touched the edge, over and over, while the program runs | CA block that repeats the blocks inside it again and again until the program is stopped | |
| 4End a forever loop when the game is over by stopping the whole program | DA block that stops the whole program, even a forever loop that would otherwise keep going | |
| 5if touching edge then forever say Ouch! | Eforever if score = 10 then stop all | |
| 6forever move 10 steps stop all | Fforever if touching edge then say Ouch! |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
forever — A block that repeats the blocks inside it again and again until the program is stopped, for example with stop all. You can put an if block inside it to keep checking something.when green flag clicked
forever
move 10 stepsforever
if touching edge then
turn 15 degreesforever
if lives = 0 then
stop allforever
if touching Cat then
say Ouch!forever
if score > 9 then
stop all