Lesson 2.1: Arrays Flashcards
_____ are data structures consisting of related data items of the same type.
Arrays
The values contained in the array are called _____.
elements/components
We access the individual elements of the array through their position number, referred to as the _____.
Index or subscript
The components of the array can both be primitive or reference types but arrays are objects and they are primitive types. True or False?
False
Since arrays are objects, they are declared using the new keyword.
Declaration
Array with one subscript.
single-dimensional arrays
Array with more than one subscript.
multi-dimensional arrays
an array with m rows and n columns is called an _____.
m-by-n array.
a[m][n] is equal to?
a[row][column]
The value of an object that references nothing.
null
How do you access array elements.
Brackets and Indices.
An array with rows of different length.
Ragged array