ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
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 …
AND Ensure the program works correctly with the expected inputs. (peerMentor:) True and (attendance:) any value > 95