What is wrong with the following Do loop? Dim index As Integer = 1 Do While index <> 10 lstBox.Items.Add("Hello") index += 2 Loop
A) It should have been written as a Do Until loop.
B) It is an infinite loop.
C) The test variable should not be changed within the loop itself.
D) Nothing
Correct Answer:
Verified
Q14: The following are equivalent While and Until
Q15: What numbers will be displayed in the
Q16: A Do While loop checks the While
Q17: If the While condition in a Do
Q18: Which While statement is equivalent to Until
Q20: What is wrong with the following Do
Q21: Which of the following are valid for
Q22: In a For statement of the form
Q23: A For...Next loop with a positive step
Q24:
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents