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

N5 Computing Science 2017 Question 3

1 mark · Data types and structures

The validity of a password is checked as part of a program. . . . Line 8 SET passValid TO false Line 9 RECEIVE userPassword FROM (STRING) KEYBOARD Line10 IF userPassword = storedPassword THEN Line 11 SET passValid TO true Line 12 END IF . . . State the data type used to store the variable “passValid”.

Marking scheme

Boolean No other answer

Previous question: N5 Computing Science 2017 Question 2

Next question: N5 Computing Science 2017 Question 4