Solved

What Is Wrong with the Following Code

Question 1

Multiple Choice

What is wrong with the following code?
Dim intIndex As Integer
For intIndex = 5 To 1
ListBox.Items.Add(intIndex.ToString)
Next


A) The Next statement must read Next intIndex.
B) A For Next loop cannot be used to count backward.
C) intIndex is declared incorrectly for use with this type of loop.
D) You need to specify a negative step value in order to execute this loop.

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