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 | |
|---|---|---|
| 1Age <> 18 | AThe boundary is wrong. A person aged exactly 18 should be allowed, so the test should be Age >= 18 and not Age < 18. | |
| 2Score >= 50 | BMark < 40 | |
| 3Check that Mark is below 40 only, so a Mark of exactly 40 gives FALSE | CTRUE when Age is not equal to 18, otherwise FALSE | |
| 4Check whether Password is exactly the same as the stored value Secret | DTRUE when Score is 50 or more, so 50 itself gives TRUE | |
| 5IF Age != 18 THEN | E!= is not a pseudocode operator. 'Not equal to' is written <>, so it should be IF Age <> 18 THEN. | |
| 6IF Age < 18 THEN // must be 18 or over to vote | FPassword = Secret |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
= < <= > >= <> — Relational operators compare two values and give a BOOLEAN result (TRUE or FALSE). = equal, <> not equal, < less than, <= less or equal, > greater than, >= greater or equal.IF Mark <> 0 THEN
OUTPUT "Not zero"
ENDIFIsAdult ← Age > 17IF Age <= 12 THEN
OUTPUT "Child"
ENDIFIF Colour = "Red" THEN
OUTPUT "Stop"
ENDIFWHILE Count < 10 DO
Count ← Count + 1
ENDWHILE