Test 3 - fill in the blanks Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

C stores lists of values in ____.

A

consecutive memory locations

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

The elements of an array are related by the fact that they ____.

A

have the same array name and type.

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

The names of the five elements of array p are ____, ____, ____, ____ and ____.

A

p[0], p[1], p[2], p[3], p[4]

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

The names of the five elements of array p are ____, ____, ____, ____ and ____.

A

p[0], p[1], p[2], p[3], p[4]

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

The contents of a particular element of an array is called the ______ of that element.

A

value

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

Naming an array, stating its type and specifying the number of elements in the array is
called _______ the array.

A

declaring

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

The process of placing the elements of an array into either ascending or descending order is called ______.

A

sorting

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

In a two dimensional array, the first index identifies the ____ of an element and the second index identifies the ____ of an element.

A

row, column

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

The process of placing the elements of an array in order is called ______ the array

A

sorting

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

An m-by-n array contains ____ rows, ____ columns and ____ elements.

A

m, n, m*n

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

The name of the element in row 3 and column 5 of array d is ____ .

A

d[3][5]

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

A pointer variable contains its value ____ of another variable.

A

address

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

The three values that can be used to initialize a pointer are ____, ____ and ____.

A

0, NULL, an address

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

The only integer that can be assigned to a pointer is ____.

A

0

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

Lists and tables of values can be stored in __________ .

A

arrays

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

A pointer variable contains as its value the ____ of another variable.

A

address

17
Q

Lists and tables of values are stored in ____.

A

arrays

18
Q

The number used to refer to a particular element of an array is called its ____.

A

index

19
Q

Determining whether an array contains a certain key value is called ____ the array.

A

searching

20
Q

An array that uses two indices is referred to as a ____ array.

A

two dimensional

21
Q

A ____ should be used to specify the size of an array because it makes the program more modifiable.

A

symbolic constant