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 | |
|---|---|---|
| 1if <touching color [red]?> then ... else ... | AIf the score is more than 9, the sprite says You win!. If not, the sprite says Keep going! Only one message appears. | |
| 2if <(score) > 9> then say [You win!] else say [Keep going!] | Bif <key [space] pressed?> then move (10) steps else turn (15) degrees | |
| 3The blocks in the else part run only when the condition is false. | CBoth paths do the same thing, so the condition makes no difference. The else part should have different blocks, such as say Try again!. | |
| 4An if-else block gives two paths, but only one of them runs each time. | DThere is no else part. A message for the false case should be in the else part, not joined on with 'and', or both messages would be said. | |
| 5if <(lives) = 0> then say [Game over] and say [Keep playing] | Eif <(answer) = [yes]> then say [Great!] else say [Maybe next time] | |
| 6if <(score) > 5> then say [Well done!] else say [Well done!] | FChecks the condition. If it is true, the first set of blocks runs. If it is false, the else set of blocks runs. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
if <> then ... else ... — A block that runs the blocks in the first part if the condition is true, and the blocks in the else part if it is false. Two paths, but only one runs.if <score > 10> then say [You win!]
else say [Try again]if <score > 10> then say [You win!]
else say [Try again]if <score > 10> then say [You win!]
else say [Try again]if <age < 8> then say [Hello, little one!]
else say [Hello, big kid!]if <score > 10> then say [You win!]
else say [Try again]