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 it is raining THEN | AIs the score above 10? true | |
| 2score > 10 | B'it is raining' is the condition: a yes/no question that is either true or false | |
| 3A condition is a yes/no question about the situation | CA condition with numbers that is true when the score is above 10, and false if it is not | |
| 4A condition can only ever have the answer true or false | DThis is not a condition. It cannot be answered with true or false. Fix it with a yes/no question like 'Is your favourite colour blue?' | |
| 5IF what is your favourite colour THEN | EA number on its own is not a question. Fix it by asking a true/false question such as 'score > 10'. | |
| 6IF score THEN | FIs the door open? |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
condition — A question about the situation that can only be answered true or false (yes or no), like 'Is it raining?' or 'Is the score above 10?'. It helps an algorithm decide what to do.IF raining = true THEN
SAY "Take an umbrella"IF score > 10 THEN
SAY "You win!"IF raining = true THEN
SAY "Take an umbrella"score ← 4
score > 10 is falsescore ← 12
IF score > 10 THEN
SAY "Great job!"