Chapter 7 T/F

¡Supera tus tareas y exámenes ahora con Quizwiz!

3. To compare the contents of two arrays, you must compare the elements of the two arrays.

True

A sorting algorithm is used to locate a specific item in a larger collection of data.

False

Java limits the number of dimensions that an array may have to 15.

False

5. When an array of objects is declared, but not initialized, the array values are set to null.

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

Declaring an array reference variable does not create an array.

True

Java does not limit the number of dimensions that an array may have.

True

Objects in an array are accessed with subscripts, just like any other data type in an array.

True

Once an array is created, its size cannot be changed.

True

The String[] args parameter in the main method header allows the program to receive arguments from the operating system command-line.

True

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

9.If a[] and b[] are two integer arrays, the expression a == b compares the array contents.

False

An array can hold multiple values of several different data types simultaneously.

False


Conjuntos de estudio relacionados

The lost colony of Roanoke Island

View Set

second set of quick book questions

View Set

Ch 8: Developing New Products and Managing the Product Life Cycle

View Set

Chapter 5: means of egress study guide ?s

View Set

Conjunciones de proposito, contingencia, tiempo

View Set

Chemistry Section 1.3: Review Questions

View Set

RIM_07_Privacy and Security in RIM (Class)

View Set