Quiz 2 Flashcards
Quiz 2
An array index store normally should be of type Double.
A) True
B) False
B) False
Quiz 2
Arrays that use two indices are referred to as __________ arrays.
A) single-subscripted
B) two-dimensional
C) double
D) one-dimensional
B) two-dimensional
Quiz 2
ComboBox property ____________ is 0 when the first ComboBox item is selected.
A) SelectedIndex
B) SElectedValue
C) Index
D) SelectedNumber
A) SelectedIndex
Quiz 2
Which method call sorts array words in ascending order?
A) Array.Sort(words)
B) words.SortArray()
C) Array.Sort(words,1)
D) Sort(words)
A) Array.Sort(words)
The initializer list can ___________.
A) be used to determine the size of the array.
B) be empty
C) contain a comma separated list of initial values for the array elements.
D) all of the above
D) all of the above
Quiz 2
The __________ property is set to True when a RadioButton is selected.
A) Selected
B) Chosen
C) On
D) Checked
D) Checked
Quiz 2
Which of the following creates an Integer array of five rows and three colums?
A) Dim values(5.3) As Integer
B) Dim values(4,2) As Integer
C) Dim values(4,3) As Integer
D) Dim values(5,2) As Integer
B) Dim values(4,2) As Integer
Quiz 2
The ComboBox control combines a TextBox control with a _______ control.
A) DateTimePicker
B) ListBox
C) NumericUpWown
D) Label
B) ListBox
Quiz 2
Which of the following statements creates Integer array values with three rows and three columns?
A) Dim array()() As Integer = {1,2,3},{4,5,6},{7,8,9}
B) Dim array() As Integer = {1,2,3},{4,5,6},{7,8,9}
C) Dim array(,) As Integer = {1,2,3},{4,5,6},{7,8,9}
D) All of the above
C) Dim array(,) As Integer = {1,2,3},{4,5,6},{7,8,9}
Quiz 2
Method GetUpperBound returns the highest numbered index in an array.
A) True
B) False
A) True
Quiz 2
The ____________ property determines whether a RadioButton is selected.
A) Selected
B) Clicked
C) Checked
D) Enabled
C) Checked
Quiz 2
An array’s elements are related by the act that they have the same name and _________.
A) constant value
B) subscript
C) type
D) value
C) type
Quiz 2
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
D) nested Do…Loop While
B) nested For…Next
Quiz 2
Method _________ returns an array’s highest index.
A) GetUpperBound
B) GetUpperLimit
C) GetHighestIndex
D) GeUpperSubscript
A) GetUpperBound
Quiz 2
An array length is ___________.
A) one more than the array’s last index
B) one less than the arry’s last index
C) the same as the arry’s ndex
D) returned by method DetUpperBound
A) one more than the array’s last index
Quiz 2
To determine the number of elements in an array, use the NumberOfElements property
A) True
B) False
B) False
Quiz 2
Two-dimensional arrays are often used to represent ____________.
A) a pie chart
B) distances
C) lines
D) Tabels
D) Tabels
Quiz 2
When declaring an array, a(n) _________ is required inside parentheses in order to indicate that the array is two-dimensional.
A) comma
B) astrisk
C) period
D) apostrophe
A) comma
Quiz 2
Property __________ contains the size of an array.
A) Elements
B) ArraySize
C) Length
D) Size
C) Length
Quiz 2
The linear search works well for unsorted arrays.
A) True
B) False
A) True
Quiz 2
The ________ event handler is invoked when the user selects a Radio button.
A) Selected
B) CheckedChanged
C) ButtonChanged
D) CheckedSelected
B) CheckedChanged
Quiz 2
The first element in every array is the _________.
A) subscript
B) zeroth element
C) length of the array
D) smallest value in the array
B) zeroth element
Quiz 2
When one RadioButton in a container is seleceted, _________.
A) other can be selected at the same time
B) a logic error will occur
C) all others will be deselected
D) Both 1 an 2
C) all others will be deselected
Quiz 2
In a __________ array each row contains the same number of columns.
A) data
B) rectangular
C) tabular
D) All of the above
B) rectangular