Chapter 6 (Arrays) Flashcards
In an array, the values can be different data types. True or False?
False
Usually, all the values in an array have _________ __ ______.
something in common
Each data item in an array is an…
element
These provide an organized storage and display system for a program’s data
an array
a series or list of values in a computer’s memory
array
each element in an array occupies an area in memory that is _________ to the others.
contiguous / adjacent
naming arrays follow the same rules as naming ________.
variables
an array name is not allowed to contain _________ ______.
embedded spaces
This differentiates elements in an array from each other
subscript/index
Subscripts cannot be _____ numbers.
real/floating
The position of a particular element within an array.
subscript / index
what is the most common symbol used to denote a subscript number?
brackets
Subscripts for an array always start at…
0
Assigning values to an array is called…
populating the array
the largest possible _______ in an array will always be arraySize - 1
subscript
[0]
sub zero
Can you declare and initialize array elements in one statement?
Yes
Can you assign new values to an array element?
Yes
Can you perform arithmetic with array elements?
Yes
Usable subscripts for an array range from 0 to one ____ than the number of elements in an array.
less
True or False: You cannot use a named constant as a subscript.
False
performing a search through a list from end to end
linear search
Flags: a variable that is set to indicate whether some _____ has occurred.
event
When using parallel arrays, they contain ________ _______ data.
logically related