McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Center | Instructor Center | Information Center | Home
Intro to VB.NET
Projects
Comprehensive Projects
Chapter Objectives
PowerPoint Presentations
Multiple Choice Quiz
True or False
Examples from the Text
Feedback
Help Center


Learning Programming Using Visual Basic.Net
Bill Burrows, University of Washington
Joe Lanford, University of Rochester

Working with Collections

Multiple Choice Quiz



1

A(n) _____ is a type of variable that can hold more than a single value.
A)list
B)group
C)array
D)cache
2

In order to access a specific value of an array, you must supply an _____ or subscript to Visual Basic .NET indicating the ordinal position of the element in the array.
A)index
B)counter
C)variable
D)pointer
3

An array that maintains multiple sets of information referenced by more than one index is called ________________.
A)multi-valued
B)multidimensional
C)complex
D)large
4

Which of the following lines of code correctly defines a loop that will add the first 20 values in an array, assuming the counter of the loop was used as the index of the array?
A)For Index = 20 To 1 Step -1 ... Next Index
B)For Index = 1 To 20 ... Next Index
C)For Index = 0 To 20 ... Next Index
D)For Index = 0 To 19 ... Next Index
5

The number of indexes or subscripts used to reference a unique value in a array is known as its _______________.
A)dimensionality
B)depth
C)complexity
D)cardinality
6

Which of the following lines of code correctly defines a one-dimensional array of 50 elements?
A)Dim $PriceList(50) As Decimal
B)Dim UserAges(49) As Integer
C)Dim InventoryDesc(50,50) As String
D)Dim Messages() As String
7

An array in which the values have been organized in some fashion is referred to as _______.
A)sorted
B)processed
C)optimized
D)ordered
8

The _________ collection class provides an array-like list of values which can dynamically grow in size during the execution of your program, unlike normal array variables.
A)VariableArray
B)ArrayList
C)DynamicArray
D)ResizableList
9

A special kind of search method called a(n) _______ search uses the fact that an ArrayList maintains a sorted collection to its advantage.
A)optimized
B)ArrayList
C)binary
D)quick
10

In Visual Basic .NET this term refers to a data structure that provides very fast access to information based on a unique key field which is translated to a bucket number.
A)BucketBrigade
B)DataMine
C)Hashtable
D)Associative Array




McGraw-Hill/Irwin