

MCQOPTIONS
Saved Bookmarks
This section includes 10 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 = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}. The intSales(1, 3) = intSales(1, 3) + 10 statement will _______________ |
A. | replace the 900 amount with 910 |
B. | replace the 500 amount with 510 |
C. | replace the 700 amount with 710 |
D. | replace the 800 amount with 810 |
Answer» E. | |
2. |
Which of the following declares a two-dimensional array that has three rows and four columns? |
A. | Dim decNums(2, 3) As Decimal |
B. | Dim decNums(3, 4) As Decimal |
C. | Dim decNums(3, 2) As Decimal |
D. | Dim decNums(4, 3) As Decimal |
Answer» C. Dim decNums(3, 2) As Decimal | |
3. |
To traverse two dimensional array you require ________________ loops. |
A. | One |
B. | Two |
C. | Three |
D. | Zero |
Answer» C. Three | |
4. |
The subscripts are _________ than the row and column in which the element is located. |
A. | One number less |
B. | One number more |
C. | Two number less |
D. | Two number more |
Answer» B. One number more | |
5. |
Each element in a two-dimensional array is identified by a unique combination of _______________ |
A. | One subscript |
B. | Two subscripts |
C. | Three subscripts |
D. | Zero subscript |
Answer» C. Three subscripts | |
6. |
The _____________ in a two-dimensional array specifies the elements row and column position. |
A. | Superscript |
B. | Subscript |
C. | Row number |
D. | Column number |
Answer» C. Row number | |
7. |
We can determine number of elements in two-dimensional array by _________________ |
A. | Multiplying number of rows and number of columns |
B. | Adding number of rows and number of columns |
C. | Multiplying number of rows and number of rows |
D. | Adding number of columns and number of columns |
Answer» B. Adding number of rows and number of columns | |
8. |
A _______________ resembles a table. |
A. | One-dimensional array |
B. | Two-dimensional array |
C. | Three-dimensional array |
D. | N-dimensional array |
Answer» C. Three-dimensional array | |
9. |
The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored? |
A. | strCapitals(1) |
B. | strCapitals(2) |
C. | strCapitals(0) |
D. | strCapitals(3) |
Answer» B. strCapitals(2) | |
10. |
If the elements in two arrays are related by their subscripts, the arrays are called as ________________ arrays. |
A. | associated |
B. | coupled |
C. | matching |
D. | parallel |
Answer» E. | |