Multidimensional Arrays Flashcards

(10 cards)

1
Q

A ____________ in Java is an
array of arrays.

A

multi-dimensional array

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

______________ is straightforward when you have predefined values.

A

Static initialization

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

_____________________ provides flexibility
when the values are calculated or assigned
during runtime, making it the preferred choice
in many situations

A

Dynamic initialization

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

__________ are essential for traversing multi
dimensional arrays in Java.

A

Nested Loops

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

Arrays of arrays, where each sub-array can have
a different length.

A

Jagged Arrays

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

Multi-dimensional arrays where all sub-arrays
(rows/columns) have the same length.

A

Rectangular Arrays

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

____________: Avoid calculating the array
length inside the loop.

A

Optimization

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

Ensure that you don’t access an out-of-bounds index in
your array to avoid

A

ArrayIndexOutOfBoundsException

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

Use print statements or debugging tools to check the
values of your indices and array elements during program
execution.

A

Debugging

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