6.All automobiles have steering wheels. A sedan is a type of automobile.
Therefore a sedan as a steering wheel. Which term best fits this description?

a.Inheritance

b.Aggregation

c.Instantiation

d.Composition

Answer: a Page
Reference: 36-37 Difficulty: Moderate

7.A single message “drawYourself()” is sent to two types of window
objects. One type of window object responds by painting a bar chart. The other
responds by displaying a photographic image. Which term best describes this
scenario?

a.Inheritance

b.Composition

c.Abstraction

d.Polymorphism

Answer: d Page
Reference: 37 Difficulty: Moderate

8.The class’s interface is primarily composed of:

a.images of its outputs.

b.signatures of its operations.

c.diagrams of its sequences.

d.links to its superclasses.

Answer: b Page
Reference: 38 Difficulty: Moderate

9.Which of the following describes an association relationship?

a.An employee works for a department.

b.A student is a type of person.

c.A credit card is identified by its account number.

d.An object is an instance of a class.

Answer: a Page
Reference: 39 Difficulty: Hard

10.Which of the following best
describes an aggregation relationship?

a.Animals are classified as birds, mammals, fish, and insects.

b.George, Louise, and Frank are all related to one another.

c.Fido, Rover, and Rex are all dogs.

d.A computer includes a CPU, RAM, and disk drive.

Answer: d Page
Reference: 39 Difficulty: Hard

11.A composition is a type of:

a.operation.

b.generalization.

c.aggregation.

d.instantiation.

Answer: c Page
Reference: 39 Difficulty: Moderate

12.A(n) ____________ is an
abstraction of a system, usually depicted via diagrams.