2015 – Q3

The pseudocode shown below uses a simple condition.

IF age < 5 THEN SEND nursery TO DISPLAY

Create a complex condition that will display “school” if a person is between the ages of 5 and 18 inclusive. (2)


Age >=5 AND Age <=18

2 conditions correct – 1 mark

AND – 1 mark

(As Age is an integer, also accept age > 4 AND age < 19.)