The intCounters array contains five elements. Which of the following assigns the number 1 to each element?

Question:

The intCounters array contains five elements. Which of the following assigns the number 1 to each element?
a. For intSub As Integer = 0 To 4
intCounters(intSub) = 1
Next intSub
b. Dim intSub As Integer
Do While intSub < 5
intCounters(intSub) = 1
intSub += 1
Loop
c. For intSub As Integer = 1 To 5
intCounters(intSub - 1) = 1
Next intSub
d. All of the above.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: