Question 1
1 markAges are stored as whole numbers.
Which one of the following conditions is True for exactly the same ages as the condition age ≥ 18?
Choose your answer.
- age > 17
- age > 18
- age ≤ 17
- age < 18
Model answer
age > 17
Explanation
For whole numbers, 'greater than 17' starts at 18, so age > 17 is True for 18, 19, 20 and so on, exactly like age ≥ 18. age > 18 leaves out 18 itself, while age ≤ 17 and age < 18 are True for the ages under 18, which is the opposite.
Mark scheme
-
1 mark
age > 17
If more than one option is given, 0 marks. Mark is for AO2 (apply).