Questions Chapter 1 Flashcards
In many data structures you can _______ a single record, ________ it, and _________ it.
input, search, delete.
Rearranging the contents of a data structure into a certain order is called _______.
sorting
In a database, a field is:
a. specific data item
b. a specific object
c. part of a record
d. part of an algorithm
part of the record
The field used when searching for a particular record is the _________ _______.
search key
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
may contain data and methods
A class:
a. is a blueprint for many objects
b. may contain data and methods
c. is a program
d. may contain classes
is a blueprint for many objects
In Java, a class specification:
a. creates objects
b. requires the keyword new
c. creates references
d. none of the above
none of the above
When an object wants to do something, it uses a _________.
method
In Java, accessing an object’s methods requires the ____ operator.
dot
In Java, boolean and byte are __________ ________ __________.
primitive data types
a data structure is:
the organization of data in a computer’s memory or in a disk file.
a key is:
a field in a record that’s used to carry out some operation on the data.