Topic 6: Arrays Flashcards

1
Q

Series or list of variables in computer memory

A

Array

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

Position number of an item in an array

A

Subscript (or index)

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

An item in the array

A

Element

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

Number of elements an array will hold

A

Size of the array

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

Individual elements have unique ________

A

subscript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Numeric with no decimal places
  2. Initialized to 0
  3. Incremented by 1 each time the logic passes through the loop
A

Array subscript variable must be:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. To hold the size of an array
  2. As the array values
  3. As a subscript
A

Using Constants with Arrays

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

unnamed constants

A

“magic numbers”

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

when using a constant as the size of an array, make sure the _____ remains less than the constant value.

A

subscript

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

Sometimes the values stored in arrays should be _______ (ex. months of the year)

A

constants

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

Each element in one array associated with element in same relative position in other array

A

Parallel arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Two or more arrays contain related data
  2. A subscript related the arrays
A

Using parallel arrays

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