Limited access

Upgrade to access all content for this subject

An array is a basic container object for holding data values, commonly referred to as elements of the array. The individual elements of an array can be accessed and modified using an index, an integer which specifies the element's position in the array.

Label the following statements true or false to test your knowledge of arrays.

Select Option TrueFalse
An array can hold several different types of data.

Select Option TrueFalse
The length of an array is fixed when the array is created.

Select Option TrueFalse
If an array has length n, the last element of the array has index n.

Select Option TrueFalse
A multidimensional array (array of arrays) can not have more than 3 dimensions.

Select Option TrueFalse
The elements of an array are laid out sequentially in memory.
Select an assignment template