Quiz 2 Flashcards

1
Q

Quiz 2

An array index store normally should be of type Double.

A) True
B) False

A

B) False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Quiz 2

Arrays that use two indices are referred to as __________ arrays.

A) single-subscripted
B) two-dimensional
C) double
D) one-dimensional

A

B) two-dimensional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Quiz 2

ComboBox property ____________ is 0 when the first ComboBox item is selected.

A) SelectedIndex
B) SElectedValue
C) Index
D) SelectedNumber

A

A) SelectedIndex

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A) Array.Sort(words)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

D) all of the above

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Quiz 2

The __________ property is set to True when a RadioButton is selected.

A) Selected
B) Chosen
C) On
D) Checked

A

D) Checked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

B) Dim values(4,2) As Integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Quiz 2

The ComboBox control combines a TextBox control with a _______ control.

A) DateTimePicker
B) ListBox
C) NumericUpWown
D) Label

A

B) ListBox

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

C) Dim array(,) As Integer = {1,2,3},{4,5,6},{7,8,9}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Quiz 2

Method GetUpperBound returns the highest numbered index in an array.

A) True
B) False

A

A) True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Quiz 2

The ____________ property determines whether a RadioButton is selected.

A) Selected
B) Clicked
C) Checked
D) Enabled

A

C) Checked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

C) type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

B) nested For…Next

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Quiz 2

Method _________ returns an array’s highest index.

A) GetUpperBound
B) GetUpperLimit
C) GetHighestIndex
D) GeUpperSubscript

A

A) GetUpperBound

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A) one more than the array’s last index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Quiz 2

To determine the number of elements in an array, use the NumberOfElements property

A) True
B) False

A

B) False

17
Q

Quiz 2

Two-dimensional arrays are often used to represent ____________.

A) a pie chart
B) distances
C) lines
D) Tabels

A

D) Tabels

18
Q

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

A) comma

19
Q

Quiz 2

Property __________ contains the size of an array.

A) Elements
B) ArraySize
C) Length
D) Size

A

C) Length

20
Q

Quiz 2

The linear search works well for unsorted arrays.

A) True
B) False

A

A) True

21
Q

Quiz 2

The ________ event handler is invoked when the user selects a Radio button.

A) Selected
B) CheckedChanged
C) ButtonChanged
D) CheckedSelected

A

B) CheckedChanged

22
Q

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

A

B) zeroth element

23
Q

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

A

C) all others will be deselected

24
Q

Quiz 2

In a __________ array each row contains the same number of columns.

A) data
B) rectangular
C) tabular
D) All of the above

A

B) rectangular

25
Q

Quiz 2

Use a ___________ to group of RadioButtons on a Form.

A) GroupBox control
B) ComboBox control
C) ListBox control
D) None of the above

A

D) None of the above

26
Q

Quiz 2

The indexed array name of one-dimensional array units’s element 2 is ___________.

A) units{2}
B) units(2)
C) units[0,2]
D) units[2]

A

B) units(2)

27
Q

Quiz 2

The ___________ event is raised when a RadioButton is either selected or deselected.

A) checkedChanged
B) Changed
C) SelectedChanged
D) None of the above

A

A) checkedChanged

28
Q

Quiz 2

The number that refers to a particular element of an array is called its __________.

A) value
B) size
C) indexed array name
D) index (or subscript)

A

D) index (or subscript)

29
Q

Quiz 2

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

A

C) Dim a(1,4) As Integer

30
Q

Quiz 2

In an m-by-n array, the m stands for __________.

A) the number of columns in the array
B) the total numer of array elements
C) the number of rows in the array
D) the number of elements in each row

A

C) the number of rows in the array

31
Q

Quiz 2

Which of the following sotrs array averageRainfall?

A) Array(averageRainfall).Sort()
B) Sort.Array(averageRainfall)
C) Sort(averageRainfall)
D) Array.Sort(averageRainfall)

A

D) Array.Sort(averageRainfall)

32
Q

Quiz 2

Property ___________ specifies the source of the data displayed in a ComboBox.

A) ComboData
B) Source
C) DataList
D) DataSource

A

D) DataSource

33
Q

Quiz 2

An array can store many different types of values

A) True
B) False

A

B) False

34
Q

Quiz 2

The process of ordering the elements of an array is called ___________ the array.

A) allocating
B) sorting
C) declaring
D) initializing

A

B) sorting

35
Q

Quiz 2

Arrays can be declared to hold values of _____.

A) type Double
B) type Integer
C) type String
D) any data type

A

D) any data type