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

N5 Computing Science 2018 Question 14

3 marks · Testing

Explain why the program may not display the expected output at line 18. Identify one logical operator in the above code. State the delivery cost for the following order. Card Type: Gold Order Total: 43.00 The program code below calculates the delivery cost of orders. . . . Line 13 IF orderTotal < 50.00 AND NOT(cardType = "Platinum") THEN Line 14 SET deliveryCost TO 5.00 Line 15 ELSE Line 16 SET delivery TO 1.50 Line 17 END IF Line 18 SEND deliveryCost TO DISPLAY . . .

Marking scheme

The variable used in line 16 has been incorrectly named/spelt. Any one from: • AND • NOT (£)5.00 or 5

Previous question: N5 Computing Science 2018 Question 13

Next question: N5 Computing Science 2018 Question 15