Chapter 8 Flashcards

1
Q

This appears in an array declaration and specifies the number of elements in the array.

a. subscript
b. size declaratory
c. array name
d. initialization

A

size declarator

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

To make programs easier to maintain, many programmers use these to specify the size of an array

a. real numbers
b. string expressions
c. math expressions
d. named constants

A

named constants

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

This is an individual storage location in an array

a. element
b. bin
c. cubby hole
d. size declarator

A

element

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

This is a number that identifies a storage location in an array

a. element
b. subscript
c. size declarator
d. identifier

A

subscript

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

This is typically the first subscript in an array

a. -1
b. 1
c. 0
d. the size of the array minus one

A

0

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

This is typically the last subscript in an array

a. -1
b. 99
c. 0
d. the size of the array minus one

A

the size of the array minus one

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

This algorithm uses a loop to step through each element of an array, starting with the first element searching for a value

a. sequential search
b. step by step search
c. elemental search
d. binary search

A

sequential search

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

Many programming languages perform this, which means they don not allow a program to use an invalid array subscript

a. memory checking
b. bounds checking
c. type compatibility checking
d. syntax checking

A

bounds checking

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

This term describes two or more arrays that hold related data and the related elements in each array are accessed with common subscript

a. synchronous arrays
b. asynchronous arrays
c. parallel arrays
d. two- dimensional arrays

A

parallel arrays

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

You typically think of a two dimensional array as containing

a. lines and statements
b. chapters and pages
c. rows and columns
d. horizontal and vertical elements

A

rows and columns

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