Chapter 7: Arrays and Array Lists Flashcards

1
Q

bounds error

A

Trying to access an array element that is outside the legal range.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

reference (Object reference)

A

A value that denotes the location of an object in memory. In Java, a variable whose type is a class contains a reference to an object of that class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

partially filled array

A

An array that is not filled to capacity, together with a companion variable that indicates the number of elements actually stored.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

parallel arrays

A

Arrays of the same length, in which corresponding elements are logically related.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

linear search

A

Searching a container (such as an array or list) for an object by inspecting
each element in turn.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

binary search

A

A fast algorithm for finding a value in a sorted array. It narrows the search down to half of the array in every step.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

two-dimensional array (matrix)

A

A tabular arrangement of elements in which an element is specified by a row and a column index.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

array list

A

A Java class that implements a dynamically-growable array of objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

type parameter

A
A parameter in a generic class or method that can be replaced with an 
actual type.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

generic class

A

A class with one or more type parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

constructor

A

A sequence of statements for initializing a newly instantiated object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

wrapper classes

A

A class that contains a primitive type value, such as Integer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

auto-boxing

A

Automatically converting a primitive type value into a wrapper type object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

test suite

A

A set of test cases for a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

regression testing

A

Keeping old test cases and testing every revision of a program against
them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

redirection

A

Linking the input or output of a program to a file instead of the keyboard or display.