Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 12 - No. 47)
What would cause the algorithm `IF PasswordLength != 8 THEN OUTPUT “Your password must be exactly eight characters”` to display its output?
The password is 8 characters long.
The password length is less than 8 characters.
The password length is more than 8 characters.
Both the second and third conditions.
Explanation
The statement tests if the password length does NOT equal 8.
Comments (0)
