ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Selection and logical operators
State the score that should be input in Line 3 to display ‘Success’. State one logical operator used in the code above. The code below is being tested to ensure it produces the correct output. … Line 3 RECEIVE score FROM KEYBOARD Line 4 IF score = 5 OR score = 10 OR score = 15 THEN Line 5 IF NOT(score >= 3 AND score <= 12) THEN Line 6 SEND "Success" TO DISPLAY Line 7 END IF Line 8 END IF
15 One mark for any one from • AND • OR • NOT