Category Archives: Input Validation

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)

Answer