1
2
3
4
5
100

An array is a list of...

data elements

100

An array can store...

any type of data but only one type of data at a time

100

Arrays allow you to create

a collection of like values that are indexed

100

Once created, an array size is

fixed and cannot be changed

100

Two-dimensional arrays are

arrays of one-dimensional arrays

200

Arrays may be a literal value, a constant, or variable but they cannot be this

A negative number

200

The length field of the array gives the number of what in an array 

rows

200

A method can return a reference to a(n)...

array

200

Arrays have a final field named...

length

200

Each element of a String array is a

String Object

300

The == operator determines

whether array references point to the same array object

300

Programs that process two-dimensional arrays can do so with...

Nested Loops

300

This type of method has a header that looks like this:
public static void main(String[] args)

main method

300

When processing the data in a two-dimensional array, each element has two subscripts, what are they?

one for its row 

one for its column

300

Declaring a two-dimensional array requires two sets of brackets and two size declarators, what are they both for 

The first one is for the number of rows

The second one is for the number of columns.

400

The array that is passed into the ______ parameter comes from the operating system command-line

args

400

what is this code doing?

int[] numbers = {10, 20, 30, 40, 50};

PrintWriter outputFile = new PrintWriter 

                        ("Values.txt");

for (int i = 0; i < numbers.length; i++)

     outputFile.println(numbers[i]);

outputFile.close();

Saving the contents of an array to a file

400

String objects have several methods, including

toUpperCase

compareTo

equals

charAt




400

What is this code finding?

    int [] numbers = new int[50];

    int highest = numbers[0];

    for (int i = 1; i < numbers.length; i++)

    {

        if (numbers[i] > highest)

            highest = numbers[i];

The highest value

400

Typically, if the amount of data that an array must hold is unknown you should...

Size the array to the largest expected number of elements
Use a counting variable to keep track of how much valid data is in the array

500

int[] numbers = new int[6];

float[] temperatures = new float[100];

char[] letters = new char[41];

long[] units = new long[50];

double[] sizes = new double[1200];

Are all examples of what?

Array

500

These are things you would typically do if what:

Size the array to the largest expected number of elements.
Use a counting variable to keep track of how much valid data is in the array.

the amount of data that an array must hold is unknown

500

while(value[count] != 0)

{

    // statements

}
is an example of what? 

Loop Condition

500

This code is summing THIS of a two-dimensional array

int[][] numbers = { { 1, 2, 3, 4 },

                    {5, 6, 7, 8},

                    {9, 10, 11, 12} };

int total;

total = 0;

for (int row = 0; row < numbers.length; row++)

{

  for (int col = 0; col < numbers[row].length; col++)

    total += numbers[row][col];

}

System.out.println("The total is " + total);

The elements

500

This code is summing THIS for a two-dimmensional array

int[][] numbers = {{ 1, 2, 3, 4},

                   {5, 6, 7, 8},

                   {9, 10, 11, 12}};

int total;

for (int row = 0; row < numbers.length; row++)

{

    total = 0;

    for (int col = 0; col < numbers[row].length; col++)

         total += numbers[row][col];

    System.out.println("Total of row " 

                       + row + " is " + total);

}

The Rows

M
e
n
u