ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Testing
This pseudocode allows the user to guess the age of a teddy bear to win it in a competition. Line 1 RECEIVE guess FROM (INTEGER) KEYBOARD Line 2 WHILE guess < 1 OR guess > 80 DO Line 3 Line 4 SEND “invalid guess: please try again” TO DISPLAY RECEIVE guess FROM (INTEGER) KEYBOARD Line 5 END WHILE Complete the table below to show normal and exceptional test data for guess. Test Data Type of Test Data normal exceptional
Normal >=1 and <=80 (1 mark) Exceptional <1 or >80 (1 mark) Any example of text