Multiple Choice
What is the error in the following code, and when will it be caught? Dim intValues(5) As Integer
Dim intIndex As Integer
For intIndex = 0 To 10
IntValues(intIndex) = 10
Next intIndex
A) The For...Next loop values for intIndex should range from 1 to 10. The error will occur at run time.
B) The loop should close with Next instead of Next intIndex. The error will occur at compile time.
C) An IndexOutOfRangeException will be thrown
D) The For...Next loop values for intIndex should range from 1 to 5. The error will occur at compile time.
Correct Answer:

Verified
Correct Answer:
Verified
Q24: The lowest possible subscript of an array
Q25: In Visual Basic you can use the
Q26: Procedures can be written to handle arrays
Q27: What does the following section of code
Q27: What does the following section of code
Q28: How many elements can be stored in
Q29: What happens to most controls when the
Q30: Which statement is not true about the
Q31: In the array declaration below, what is
Q33: Which one of the following declares a