ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions

N5 Computing Science 2026 Question 4

3 marks · Selection and logical operators

Identify the logical operator in this code. This code is tested using normal test data. Describe the purpose of using normal test data when testing code. Give an example of normal test data that could be used on line 34. The following code checks if a pupil will receive a merit. … Line 34 IF peerMentor = TRUE AND attendance > 95 THEN Line 35 SET merit TO "Yes" Line 36 END IF …

Marking scheme

AND Ensure the program works correctly with the expected inputs. (peerMentor:) True and (attendance:) any value > 95

Previous question: N5 Computing Science 2026 Question 3

Next question: N5 Computing Science 2026 Question 5