comp 4 Flashcards

1
Q

Two-dimensional arrays have _____.

A

two or more columns of values.

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

The two dimensions represent the ____

A

height and width of the array.

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

Mathematicians also use two dimensional array and they call it ____

A

matrix or a table.

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

Tech-savvy people often call _______

A

2D arrays as spreadsheet

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

_______ often call 2D arrays as spreadsheet

A

Tech-savvy people

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

Declaration

A

Syntax: datatype[][] variable = new datatype[i][j];

i represents the ROWS

j represents the COLUMNS

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

Same as the 1D Array, if you do not provide values for the elements in a 2D array, to its default value.

A

?

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

Initialize a two-dimensional array with _____

A

values when it is created.

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

A method that receives a two-dimensional array uses_______

A

two bracket pairs following the data type in the parameter list of the method header.

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

There is ______ to insert numbers into the brackets because each passed array name is a starting memory address.

A

no need

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

The way you manipulate subscripts within the method determines

A

how rows and columns are accessed

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

We can also use the ____ in our 2D Array.

A

length field

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

a 2D array that has rows of different lengths.

A

Jagged array or ragged array

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

jagged array can also be called as

A

non-rectangular array

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

arrays with more than one dimension.

A

Multidimensional arrays

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

When you are programming in Java, you can use _______ dimensions in an array.

A

four, five, or more

17
Q

Java provides an Arrays class, which contains ___

A

many useful methods for manipulating arrays.

18
Q

Arrays class is inside ____

A

java.util package.