2014 – Q14

Employees can only access their company network if they enter a correct username and password. A validation program is being developed and will run each time an employee logs on.

An extract of pseudocode from the program is shown below.

2014 - Q14

An error is noticed when the program is tested.

(a) Identify the line containing a logic error. (1)

(b) State how this error should be corrected. (1)

(a) 3 (1 mark)

(b) Replace OR with AND (1 mark)

Leave a Reply

Your email address will not be published. Required fields are marked *