Which of the following declares a five-element one-dimensional array? a. Dim dblAmounts(4) As Double b. Dim dblAmounts(5) As Double c. Dim dblAmounts(4) As Double =  {3.55, 6.70, 8, 4, 2.34} d. both a...


Which of the following declares a five-element one-dimensional array?


a. Dim dblAmounts(4) As Double


b. Dim dblAmounts(5) As Double


c. Dim dblAmounts(4) As Double =


 {3.55, 6.70, 8, 4, 2.34}


d. both a and c


The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process the loop instructions for each element in the array?


a. Do While intSub > 20


b. Do While intSub


c. Do While intSub >= 20


d. Do While intSub


The intSales array is declared as follows: Dim intSales() As


Integer = {10000, 12000, 900, 500, 20000}. The statement intSales(3) = intSales(3) + 10 will .


a. replace the 500 amount with 10


b. replace the 500 amount with 510


c. replace the 900 amount with 10


d. replace the 900 amount with 910

Nov 22, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here