Programming Ch. 7

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

s used to locate a specific item in a larger collection of data.

A search algorithm

False

A sorting algorithm is used to locate a specific item in a larger collection of data.(T/F)

subscript

A(n) ________ is used as an index to pinpoint a specific element within an array.

True

An ArrayList object automatically expands in size to accommodate the items stored in it.(T/F)

consists of an array of references to String objects.

An array of String objects

True

Java does not limit the number of dimensions that an array may have.(T/F)

remove

The ________ method removes an item from an ArrayList at a specific index.

toString

This method returns a string representing all of the items stored in an ArrayList object.

All of these

When an array is passed to a method

set

You can use the ________ method to replace an item at a specific location in an ArrayList.

add

You can use this ArrayList class method to insert an item at a specific location in an ArrayList.

size

You use this method to determine the number of items stored in an ArrayList object.

In order to do a binary search on an array,

the array must first be sorted in ascending order.

A partially filled array is normally used

with an accompanying integer value that holds the number of items stored in the array.

What is a ragged array?

a two-dimensional array where the rows have a different number of columns

True

Objects in an array are accessed with subscripts, just like any other data type in an array.(T/F)

variable-length argument lists

ava provides a mechanism known as ________, which makes it possible to write a method that takes a variable number of arguments.

True

To determine if two arrays are equal, you must compare each of the elements of the two arrays.(T/F)


संबंधित स्टडी सेट्स

Chapter: Completing the Application, Underwriting, and Delivering the Policy

View Set