chapter 7 java

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

binary search

This search algorithm repeatably divides the portion of an array

add

To insert an item at a specific location in an arraylist object you use this method

braces

When initializing a two-dimensional array, you enclose each each rows initialization list in______.

true

An arrayList automatically expands in size to accommodate the items store in it

false

An arrays size declaratory can be a negative integer and equivalent

subscript

Each element of an array is accessed by a number kown as

size declaration

in an array declaration this indicates the number of elements that the array will have

true

java does not allow a statement to use a subscript that is outside the range of valid subscripts for anarray

n/2

this is the typical number of comparisons performed by the sequential search on an array of N elements

sequential search

this search algorithm repeatedly divides the portion of an array being searched in half

remove

to delete an item from an arraylist object you use the method

size

to determine the number of items stored in an arraylsit object, you use this method

true

when an array is passes to a method, the method has access to the original array.

when the program runs

Array bounds checking happens

false

The first size declaratory in the declaration of a two dimensional array represents the number of columns. the second size declarator represents the number or rows

true

The java compiler does not display an error message when it processes a statement that used an invalid subscript

true

The subscriot of the last element in a single- dimensioal array is one less than the total number of elements in the array

true

The values in an initialization

length

This array field hold the number of elements that the array has

true

an arrays size declaration are legal and equivalent: int [ ] numbers; int numbers [ ];

0

the first subscript in an array is always________

1 less than the number of elements

the last subscript is an array is always ___________

true

A two dimensional array has multiple length fields


Conjuntos de estudio relacionados

Exam 2 Practice Questions (PPE 3003)

View Set

AP World History Chapter 1 Multiple Choice, AP World History Chapter 2 Multiple Choice, World History: Chapter 4: Multiple Choice, AP World History Chapter 5 Multiple Choice, AP World History Chapter 6 Multiple Choice, AP World History Chapter 7 Mult...

View Set

Characteristics of Students with Emotional and Behavioral Disorders

View Set