Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
An array is a set of variables. Each individual variable is called _______.
A)A subscript
B)An element
C)A subscripted variable
D)An index
2
The individual variables in an array are accessed by their _______, which is their position in the array
A)Dimension
B)ListCount property
C)Subscript
D)ItemCount property
3
Declare an array and specify the number of elements using _______.
A)The ListCount property
B)The ListIndex property
C)An Array statement
D)A Dim statement
4
How many elements are contained in the array created with the following code? Dim EmployeeString(25) As String
A)0 (The code is incorrect to create an array.)
B)24
C)25
D)26
5
If an exception is thrown and the message, "Index was outside the bounds of the array." displays, this indicates _______.
A)The array is completely full of data
B)The subscript is a value greater than the number of elements declared in the array's Dim statement
C)The subscript has reached a value lower than the number of elements declared in the array's Dim statement
D)The answer could be B or C.
6
When you are working with an array, the easiest way to traverse the elements is to use the _______.
A)If / Then statement
B)Next statement
C)For Each / Next statement
D)Case structure
7
In the following statement, _______, refers to the array, For Each OneSchoolString In SchoolString
A)For Each
B)OneSchoolString
C)In
D)SchoolString
8
A VB programmer can combine multiple fields of related data using a _______.
A)DataType statement
B)Structure statement
C)For Each statement
D)Public statement
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)BusinessVendor(2).PhoneString
B)Vendor(2).PhoneString
C)PhoneString(2).Vendor
D)BusinessVendor(2)
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)SalesDecimal += TotalSalesDecimal(1)
B)SalesDecimal += TotalSalesDecimal(2)
C)TotalSalesDecimal(1) += SalesDecimal
D)TotalSalesDecimal(2) += SalesDecimal







Bradley:Programming in VB 2008Online Learning Center

Home > Chapter 8 > Multiple Choice Quiz