Arrays Flashcards
1
Q
What are Arrays?
A
An array is a data structure that consists of a fixed number of the same data types.
2
Q
Is the size of an Array fixed or free?
A
Fixed. It cannot increase to accommodate more elements.
3
Q
Arrays are objects.
TRUE or FALSE
A
TRUE
4
Q
Simple Arrays are _______________.
A
One-Dimensional
5
Q
The minimum number of elements for an Array is ____.
A
0 (Zero)
6
Q
What are individual Array Elements called?
A
Index.
7
Q
What is the Lower bound and Upper bound of any Array?
A
Lower bound (min): 0.
Upper bound (max): 1 less than the number of elements.
Ex. int a[10]: Lower = a[0] / Upper = a[9]
THERE IS NO a[10]!