

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Visual Basic knowledge and support exam preparation. Choose a topic below to get started.
1. |
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 |
Answer» C. replace the 900 amount with 10 | |
2. |
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. | Dim dblAmounts() As Double={3.55, 6.70, 8, 4, 2.34,1.45} |
Answer» E. | |