ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Selection and logical operators
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.
age >= 5 AND 2 conditions correct – 1 mark AND – 1 mark age <=18 As age is an integer accept: age > 4 AND age < 19 As answers may be pseudocode also accept: age >= 5 AND <= 18