The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}.

Question:

The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following If clauses determines whether the intSub variable contains a valid subscript for the array?
a. If intSub >= 0 AndAlso intSub <= 4 Then
b. If intSub >= 0 AndAlso intSub < 4 Then
c. If intSub >= 0 AndAlso intSub <= 5 Then
d. If intSub > 0 AndAlso intSub < 5 Then

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

Step by Step Answer:

Question Posted: