Questions Chapter 1 Flashcards

1
Q

In many data structures you can _______ a single record, ________ it, and _________ it.

A

input, search, delete.

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

Rearranging the contents of a data structure into a certain order is called _______.

A

sorting

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

In a database, a field is:

a. specific data item
b. a specific object
c. part of a record
d. part of an algorithm

A

part of the record

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

The field used when searching for a particular record is the _________ _______.

A

search key

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

In object-oriented programming, an object:

a. is a class
b. may contain data and methods
c. is a program
d. part of an algorithm

A

may contain data and methods

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

A class:

a. is a blueprint for many objects
b. may contain data and methods
c. is a program
d. may contain classes

A

is a blueprint for many objects

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

In Java, a class specification:

a. creates objects
b. requires the keyword new
c. creates references
d. none of the above

A

none of the above

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

When an object wants to do something, it uses a _________.

A

method

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

In Java, accessing an object’s methods requires the ____ operator.

A

dot

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

In Java, boolean and byte are __________ ________ __________.

A

primitive data types

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

a data structure is:

A

the organization of data in a computer’s memory or in a disk file.

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

a key is:

A

a field in a record that’s used to carry out some operation on the data.

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