Chapter 5 - Arrays Flashcards
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.
Array
A _________, also called an index, is a number that indicates the position of a particular item within an array.
Subscript
Each variable within an array has the same name and the same data type; each separate array variable
Element
a search in a programs from one end of a # list to another
Linear Search
is a variable that you set to see whether some event has occurred (frequently holds a Boolean value)
Flag
The connection made in the program between the dept + array.
Direct Relationship
Relationship between an items number and price
Indirect Relationship
When a subscript is used, and the range of acceptable is “out of bounds”
Out of bounds
Two corresponding arrays
Parrallel Arrays
determined by how many elements an array can hold
Size of array
Every Array has a finite_____.
Size
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.
For Loop
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