Chapter 5 Questions Flashcards

(9 cards)

0
Q

Arrays are never mandatory, but often can cut down on your programming time and make your—–easier to understand.

A

LOGIC

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

The true benefit of an array lies in the ability to use a variable a(n)——-to an array instead of using a constant such as 0 or 5.

A

SUBSCRIPT

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

You can declare a named numeric constant as follows: Array_Size:6. Then you can use this constant everytime you access the array as long as your subscript used remains—–than the constant value.

A

LESS

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

Every array has a finite——.

A

SIZE

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

You can think of arrays in one of two ways- either by the number of elements in the array or by the number of——–in the array.

A

VARIABLES

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

In every programming language when you access data stored in an array, it is important to use a subscript containing a value that accesses——–occupied by the array.

A

MEMORY

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

When you use a subscript value that is——-or higher than the number of elements in an array some programming languages will stop execution and issue an error.

A

NEGATIVE

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

The—–loop is a particularly convenient tool when working with arrays because you frequently need to process every element.

A

FOR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
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