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 | |
|---|---|---|
| 1Score <> 0 | AIF Password = "abc123" THEN | |
| 2Age >= 16 | BTRUE when Age is 16 or more, including exactly 16 | |
| 3A single = in a condition tests whether two values are equal and gives TRUE or FALSE | CIF Mark > Max THEN | |
| 4> is strictly greater than, so a value equal to the limit gives FALSE | DTRUE when Score is not equal to 0, FALSE when Score is 0 | |
| 5IF Count => 10 THEN | EThe operator is written the wrong way round. It should be >= (greater than or equal to), not =>. | |
| 6IF Number != 5 THEN | F!= is not a pseudocode operator. 'Not equal to' is written <>. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
=, <>, <, >, <=, >= — Comparison operators compare two values and give TRUE or FALSE. = equal, <> not equal, < less than, > greater than, <= less than or equal, >= greater than or equal.IF Password = "abc123" THEN
OUTPUT "Welcome"
ENDIFIF Answer <> "yes" THEN
OUTPUT "Try again"
ENDIFIF Age >= 16 THEN
OUTPUT "Allowed"
ENDIFWHILE Lives > 0 DO
Lives ← Lives - 1
ENDWHILEMark ← 39
Fail ← Mark <= 39
OUTPUT Fail