Sample Quiz 2 Flashcards

1
Q

The first element in every array is the _________

A

zeroth element

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

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

A

Checked

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

Two-dimensional arrays are often used to represent ____________.

A

Tabels

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

Arrays can be declared to hold values of _____.

A

any data type

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

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

A

False

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

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

A

ListBox

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

Property __________ contains the size of an array

A

Length

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

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

A

the number of rows in the array

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

Method _________ returns an array’s highest index

A

GetUpperBound

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

An array index store normally should be of type Double

A

False

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

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

A

index (or subscript)

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

Use a ___________ to group of RadioButtons on a Form

GroupBox control

ComboBox control

ListBox control

A

None of the above

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

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

A

checkedChanged

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

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

A

units(2)

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

method that call sorts array words in ascending order?

A

Array.Sort(words)

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

statement that creates Integer array values with three rows and three columns?

A

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
17
Q

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

A

rectangular

18
Q

The ____________ property determines whether a RadioButton is selected.

A

Checked

19
Q

Which of the following creates an Integer array of five rows and three colums?

A

Dim values(4,2) As Integer

20
Q

When one RadioButton in a container is seleceted, _________.

A

all others will be deselected

21
Q

An array can store many different types of values

A

False

22
Q

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

A

CheckedChanged

23
Q

Typically, ____________ statements are used to iterate over each element in a two-dimensional array.

A

nested For…Next

24
Q

When declaring an array, a(n) _________ is required inside parentheses in order to indicate that the array is two-dimensional.

A

comma

25
Q

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

A

sorting

26
Q

Method GetUpperBound returns the highest numbered index in an array.

A

True

27
Q

Which of the following sotrs array averageRainfall?

A

Array.Sort(averageRainfall)

28
Q

The linear search works well for unsorted arrays.

A

True

29
Q

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

A

DataSource

30
Q

An array’s elements are related by the act that they have the same name and _________.

A

type

31
Q

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

A

SelectedIndex

32
Q

The initializer list can ___________.

A

be used to determine the size of the array.

be empty

contain a comma separated list of initial values for the array element

33
Q

An array length is ___________.

A

one more than the array’s last index

34
Q

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

A

two-dimensional

35
Q

The expression _______ creates an Integer array of two rows and five columns.

A

Dim a(1,4) As Integer

36
Q

An array index store normally should be of type Double.

A

False

37
Q

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

A

index (or subscript)

38
Q

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

A

ListBox

39
Q

Arrays can be declared to hold values of _____.

A

any data type

40
Q

When one RadioButton in a container is seleceted, _________.

A

all others will be deselected