Solved

What Is Wrong with the Following Simple Password Program Where

Question 3

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents