Two-dimensional array Flashcards

1
Q

A
array is an array of
arrays.

A

two-dimensional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Although a two-dimensional
array is actually an array of
arrays, it’s best to think of it
as having
of elements.

A

rows and columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Declaring
Two-Dimensional
Arrays

A

double[][] scores = new double[3][4];

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A is a loop
inside another loop. These
loops are particularly
useful when displaying
multidimensional data.

A

nested loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When the rows of a two-
dimensional array are of different
lengths, the array is known as a

A

ragged array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

True or false
Java does not limit the number
of dimensions that an array
may have. It is possible to
create arrays with multiple
dimensions, to model data that
occurs in multiple sets.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly