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 raining THEN take umbrella ELSE wear sunhat | AIF score >= 10 THEN give prize ELSE try again | |
| 2ELSE wear sunhat | BBoth paths do the same action, so the ELSE path does not give a different outcome. The ELSE action should be something else, like wear a t-shirt. | |
| 3Two outcomes: if the score is 10 or more you get a prize, otherwise you try again | CThe path that runs when the condition is false | |
| 4Following each path: if the light is green you go, but if it is not green you stop | DThe ELSE has no action after it. It needs a second action, like push the door open. | |
| 5IF it is cold THEN wear a jumper ELSE wear a jumper | EChooses between two paths: take the umbrella if it is raining, otherwise wear the sunhat. Only one happens. | |
| 6IF door is locked THEN use key ELSE | FIF light is green THEN go ELSE stop |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
IF condition THEN action1 ELSE action2 — Chooses between two paths. If the condition is true, action1 runs. If it is false, the ELSE path runs action2 instead. Exactly one of the two paths runs.IF door is open THEN close it ELSE open itIF it is raining THEN
take an umbrella
ELSE wear a capIF score > 10 THEN
show "You win!"
ELSE show "Try again"IF temperature > 25 THEN wear shorts
ELSE wear jeansIF the light is green THEN go
ELSE stop