Self Review Exercises 7 Flashcards
SRE 7
The number that refers to a particular element of an array is called its _____.
a) value
b) size
c) indexed array name
d) index
d) index
SRE 7
The indexed array name of one-dimensional array units’ element 2 is _____.
a) units{2}
b) units(2)
c) units[0,2]
d) units[2]
b) units(2)
SRE 7
An array’s length is ____.
a) one more than the array’s last index
b) one less than the array’s last index
c) the same as the array’s last index
d) returned by method GetUpperBound
a) one more than the array’s last index
SRE 7
Property ____ specifies the source of the data displayed in a ComboBox.
a) ComboData
b) Source
c) DataList
d) DataSource
d) DataSource
SRE 7
ComboBox property _____ is 0 when the first ComboBox item is selected.
a) SelectedIndex
b) SelectedValue
c) Index
d) SelectedNumber
a) SelectedIndex
SRE 7
The process of ordering the elements of an array is called _____ the array.
a) allocating
b) sorting
c) declaring
d) initializing
b) sorting
SRE 7
Which of the following sorts array averageRainfall?
a) Array(averageRainfall).Sort()
b) Sort.Array(averageRainfall)
c) Sort(averageRainfall)
d) Array.Sort(averageRainfall)
d) Array.Sort(averageRainfall)
SRE 7
Arrays that use two indices are referred to as _____ arrays.
a) single-dimensional
b) two-dimensional
c) double
d) one-dimensional
b) two-dimensional
SRE 7
The expression ______ creates an Integer array of two rows and five columns.
a) Dim a(2,5) As Integer
b) Dim a(1, 5) As Integer
c) Dim a(1, 4) As Integer
d) Dim a(2, 4) As Integer
c) Dim a(1, 4) As Integer
SRE 7
The _____ event is raised when a RadioButton is either selected or deselected.
a) CheckChanged
b) Changed
c) SelectedChanged
d) None of the Above
a) CheckChanged
SRE 7
When one RadioButton in a container is selected, ______.
a) the others can be selected at the same time
b) a logic error will occur
c) all others will be deselected
d) Both a and b
c) all others will be deselected
SRE 7
Typically, _____ statements are used to iterate over each element in a two-dimensional array.
a) Do While….Loop
b) nested For….Next
c) Do…Loop Until
d) nested Do…Loop While
b) nested For….Next
SRE 7
True or False: An array can store many different types of values
False: An array can store only values of the same type.
SRE 7
True or False: An array index normally should be of type Double.
False: An array index must be a nonnegative integer or integer expression.
SRE 7
True or False: Method GetUpperBound returns the highest numbered index in an array
True