The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly add 100 to each array element? The intSub variable contains the number 0 before the loops are processed.
A.
Do While intSub <= 4
intSub = intSub + 100
Loop
B.
Do While intSub <= 4
intSales = intSales + 100
Loop
C.
Do While intSub < 5
intSales(intSub) =intSales(intSub) + 100
Loop
D.
Do While intSub <6
intSales(intSub) = intSales(intSub) + 100
Loop
Answer: Option C
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