Chapter 7 Arrays and ArrayList Class
An array's size declarator can be a negative integer expression
False
the first size declarator in the declaration of a two dimensional array represents the number of columns. the second size declarator represents the number of rows.
False
4.
Less than the number of elements
Both of the following declarations are legal and equivalent: int[] numbers; int numbers[];
True
Java does not allow a statement to use a subscript that is outside the range of valid subscripts for an array.
True
The subscript of the last element in a single dimensional array is one less than the total number of elements in the array.
True
The values in an initialization list are stored in the array in the order that they appear in the list.
True
a two dimensional array has multiple length fields.
True
an ArrayList automatically expands in size to accommodate the items stored in it
True
the Java compiler foes not display an error message when it processes a statement that uses an invalid subscript.
True
when an array is passed to a method, the method has access to the original array.
True
8.
binary search
10
braces
6.
length
9.
n/2
12
remove
7.
sequential search
13
size
5.
when the program runs
11
add
1.
Size Declarator
2.
Subscript
3.
Zero