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

N5 Computing Science 2015 Question 10

1 mark · Data types and structures

State the data type of the variable “password” in the code below. … Line 12 SEND “Please enter your password” TO DISPLAY Line 13 IF (password < > “h1gh@sch00l”) THEN Line 14 SEND “error: please re-enter password” TO DISPLAY Line 15 END IF

Marking scheme

String Not ‘text’ as context of question is programming.

Previous question: N5 Computing Science 2015 Question 9

Next question: N5 Computing Science 2015 Question 11