Chapter 7 T/F Review - Computer Programming
When an array of objects is declared but not initialized, the array values are set to 0.
False
A sorting algorithm is a technique for scanning through an array and rearranging its contents in some specific order.
True
An ArrayList object automatically expands in size to accommodate the items stored in it.
True
Any items typed on the command-line, separated by space, after the name of the class, are considered to be one or more arguments that are to be passed into the main method.
True
Java does not limit the number of dimensions an array may have.
True
Objects in an array are accessed with subscripts, just like any other data type in an array.
True
The String[] args parameter in the main method header allows the program to receive arguments from the operating system command-line.
True
To determine if two arrays are equal you must compare each of the elements of the two arrays.
True
A sorting algorithm is used to locate a specific item in a larger collection of data.
False
The Java compiler will display an error message when it processes a statement that uses an invalid subscript.
False