Solved

What Is Wrong with the Following Simple Password Program Where

Question 17

Multiple Choice

What is wrong with the following simple password program where today's password is "intrepid"
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click Dim password As String
password = InputBox ("Enter today's password:")
Do
lstBox. Items. Add ("Incorrect")
password = InputBox ("Enter today's password:")
Loop Until password = "intrepid"
lstBox. Items. Add ("Password Correct. You may continue.")
End Sub


A) There is no way to re-enter a failed password.
B) The Loop Until condition should be passWord <> "intrepid".
C) It will display "Incorrect." even if the first response is "intrepid".
D) Nothing

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions