Chapter 5 Questions Flashcards
(9 cards)
Arrays are never mandatory, but often can cut down on your programming time and make your—–easier to understand.
LOGIC
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.
SUBSCRIPT
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.
LESS
Every array has a finite——.
SIZE
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.
VARIABLES
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.
MEMORY
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.
NEGATIVE
The—–loop is a particularly convenient tool when working with arrays because you frequently need to process every element.
FOR
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.
LESS