Question Detail
Question
In the ATM Security Check example, the loop condition is
while pin != "1234":. What is the primary purpose of this specific condition?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Page 6 describes this example as "Wait for the user to provide the correct PIN before granting access." The loop continues as long as the
pin is NOT equal to "1234".
Hint
The
!= operator means "not equal to".