ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
2 marks · Fixed and conditional loops
Explain the purpose of lines 5 to 8 in this pseudocode. … Line 4 SET password TO “h1gh@sch00l” Line 5 REPEAT Line 6 SEND “Please enter your password” TO DISPLAY Line 7 RECEIVE user_guess FROM (INTEGER) KEYBOARD Line 8 UNTIL password = user_guess
The user will be required to enter a password. (1 mark) Until the correct password is entered. (1 mark) The user will be required to enter a password (1 mark) The code will continually loop as an integer is required and the password is a string. (1 mark)