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 intSales(intSub) >= 0 AndAlso intSales(intSub) < 4 ThenB.
If intSales(intSub) >= 0 AndAlso intSales(intSub) <= 4 Then
C.
If intSub >= 0 AndAlso intSub < 4 Then
D.
If intSub >= 0 AndAlso intSub <= 4 Then
Answer: Option B
Related Questions on Visual Basic
Which of the following extension is used to represent the project file in Visual Basic?
A. .vbp
B. .vb
C. .cls
D. .vvb
Which of the following applications can be developed using Visual Basic tool?
A. Graphical User Interface
B. Real-time
C. Character User Interface
D. All of the mentioned
In visual basic language what are the rules of a programming language called?
A. Grammar
B. Order
C. Syntax
D. Rules

Join The Discussion