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 >= 50 | AAge > 16 | |
| 2Age <> 18 | BTemperature >= 100 | |
| 3To test that a student must be older than 16 (16 itself does not count), write the symbol and the exact value | CA precise condition: true when Score is 50 or more, so 50 itself passes | |
| 4To test that a temperature is at least 100, include 100 itself by using the symbol for greater than or equal to | DA precise condition: true when Age is anything other than 18 | |
| 5IF Mark is greater than 50 THEN | EThe condition uses words instead of a relational symbol, so it is too vague and loses marks. It should be IF Mark > 50 THEN. | |
| 6IF Age >= 18 THEN (when the rule says over 18) | FThe wrong symbol is used. 'Over 18' means 18 does not count, so it should be Age > 18, not Age >= 18. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Age >= 18 — A precise condition uses a relational symbol and exact values, like Age >= 18. Words such as 'Age is old enough' or 'greater than' are too vague and lose marks.IF Age >= 18 THEN
OUTPUT "Adult"
ENDIFIF Mark > 40 THEN
OUTPUT "Mark above 40"
ENDIFIF Quantity < 10 THEN
OUTPUT "Low stock"
ENDIFIF Age <= 5 THEN
OUTPUT "Free entry"
ENDIFIF Score >= 0 AND Score <= 100 THEN
OUTPUT "Valid"
ENDIF