MCQ: Visual Basic Arrays

This post consists of all the MCQ questions related to visual basic arrays.

Page 1 of 2

1. An array is a set of variables. Each individual variable is called _______.

A.
B.
C.
D.

2. The individual variables in an array are accessed by their _______, which is their position in the array

A.
B.
C.
D.

3. Declare an array and specify the number of elements using _______.

A.
B.
C.
D.

4. How many elements are contained in the array created with the following code? Dim EmployeeString(25) As String

A.
B.
C.
D.

5. If an exception is thrown and the message, "Index was outside the bounds of the array." displays, this indicates _______.

A.
B.
C.
D.

6. When you are working with an array, the easiest way to traverse the elements is to use the _______.

A.
B.
C.
D.

7. In the following statement, _______, refers to the array, For Each OneSchoolString In SchoolString

A.
B.
C.
D.

8. A VB programmer can combine multiple fields of related data using a _______.

A.
B.
C.
D.

9. Given the following code, which of the choices below would be used to access the phone number of the 3rd vendor? Private Structure Vendor Dim VendorIDString As String Dim NameString As String Dim PhoneString As String End Structure Dim BusinessVendor(5) As Vendor

A.
B.
C.
D.

10. Which of the following code samples is valid for accumulating the total sales for the Tigers baseball club if the Tigers are the second group in the list?

A.
B.
C.
D.


 

Leave a Reply

avatar
  Subscribe  
Notify of