Chapter 5 - Arrays Flashcards

1
Q

is a series or list of variables in computer memory; all the variables have the same name and data type but are differentiated with special numbers called subscripts.

A

Array

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

A _________, also called an index, is a number that indicates the position of a particular item within an array.

A

Subscript

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

Each variable within an array has the same name and the same data type; each separate array variable

A

Element

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

a search in a programs from one end of a # list to another

A

Linear Search

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

is a variable that you set to see whether some event has occurred (frequently holds a Boolean value)

A

Flag

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

The connection made in the program between the dept + array.

A

Direct Relationship

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

Relationship between an items number and price

A

Indirect Relationship

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

When a subscript is used, and the range of acceptable is “out of bounds”

A

Out of bounds

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

Two corresponding arrays

A

Parrallel Arrays

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

determined by how many elements an array can hold

A

Size of array

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

Every Array has a finite_____.

A

Size

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

The______ loop is a particularly convenient tool when working with arrays because you frequently need to process every element of an array from beginning to end.

A

For Loop

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

As with a while loop, when you use a for loop, you must be careful to stay within array bounds, remembering that the highest usable array subscript is one _______ than the size of the array

A

Less

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