Chapter 13 Object-Oriented Data Modeling: Modern Database Management, 11e (Hoffer Et Al.)
Chapter 13 Object-Oriented Data Modeling: Modern Database Management, 11e (Hoffer Et Al.)
Chapter 13 Object-Oriented Data Modeling: Modern Database Management, 11e (Hoffer Et Al.)
)
Chapter 13 Object-Oriented Data Modeling
4) A(n) ________ is a concept, abstraction, or thing that has a state, behavior, and identity.
A) relationship
B) attribute
C) key
D) object
Answer: D
Diff: 1 Page Ref: 13-4
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
1
5) A(n) ________ encompasses an object's properties and the values of those properties.
A) state
B) attribute
C) method
D) behavior
Answer: A
Diff: 1 Page Ref: 13-4
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
6) Which of the following refers to a set of objects that share common structures and behaviors?
A) Supertype
B) Object class
C) Model
D) Entity group
Answer: B
Diff: 1 Page Ref: 13-5
Topic: Object-Oriented Data Modeling
AACSB: Analytic Skills, Use of Information Technology
Subtopic: Representing Objects and Classes
7) A diagram that shows the static structure of an object-oriented model is called a(n):
A) structure diagram.
B) class diagram.
C) entity diagram.
D) none of the above.
Answer: B
Diff: 1 Page Ref: 13-5
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
8) A graph of instances that are compatible within a class diagram is called a(n):
A) object group.
B) method chart.
C) object diagram.
D) ERD.
Answer: C
Diff: 1 Page Ref: 13-5
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
2
9) Which of the following is a function or service provided by all instances of a class?
A) Operation
B) Implementation
C) Class group
D) Query
Answer: A
Diff: 1 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
10) ________ is the technique of hiding the internal implementation details of an object from its
external view.
A) Grouping
B) Encapsulation
C) Classification
D) Mining
Answer: B
Diff: 1 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
11) Which of the following operations does NOT alter the state of an object?
A) Update
B) Query
C) Constructor
D) None of the above
Answer: B
Diff: 1 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
3
13) Which type of operation has side effects?
A) Update
B) Append
C) Query
D) Scope
Answer: A
Diff: 2 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
14) An operation that applies to a class rather than an object instance is a(n):
A) constructor operation.
B) query operation.
C) class-scope operation.
D) update operation.
Answer: C
Diff: 1 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
15) A(n) ________ is shown as a solid line between the participating classes.
A) connector
B) update
C) entity
D) association
Answer: D
Diff: 2 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Analytic Skills, Use of Information Technology
Subtopic: Representing Associations
4
17) ________ indicates how many objects participate in a given relationship.
A) Bound
B) Multiplicity
C) Role
D) Relationship
Answer: B
Diff: 1 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Associations
19) An association ________ is an association that has attributes or operations of its own.
A) link
B) group
C) class
D) body
Answer: C
Diff: 1 Page Ref: 13-10
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Associations
5
20) In the figure below, which of the following is true?
21) A class that has direct instances is called a(n) ________ class.
A) abstract
B) multiplicity
C) large
D) concrete
Answer: D
Diff: 1 Page Ref: 13-14
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
6
23) According to the UML Notation Guide, complete means:
A) a descendant may come from more than one supertype.
B) a descendant may be not descended from more than one of the subclasses.
C) all subclasses have been specified, and no others are expected.
D) the list of objects is not stable.
Answer: C
Diff: 2 Page Ref: 13-15
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
24) A(n) ________ is an attribute of a class that specifies a value common to an entire class.
A) completion attribute
B) class-scope attribute
C) overall descriptor
D) summary descriptor
Answer: B
Diff: 1 Page Ref: 13-16
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
25) A(n) ________ defines the form or protocol of an operation, but not its implementation.
A) meta-operation
B) inquisitor
C) abstract operation
D) operation descriptor
Answer: C
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
7
27) ________ means that the same operation can apply to two or more classes in different ways.
A) Polymorphism
B) Inheritance
C) Combined operations
D) Checkpoint
Answer: A
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
28) The process of replacing a method inherited from a superclass by a more specific
implementation of the method in a subclass is called:
A) inheritance.
B) encapsulation.
C) polymorphism.
D) overriding.
Answer: D
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Interpreting Inheritance and Overriding
8
30) In the figure below, what relationship is shown?
A) Overlaps
B) Disjoints
C) Rejoinders
D) Aggregation
Answer: D
Diff: 2 Page Ref: 13-19
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
31) A part object which belongs to only one whole object and which lives and dies with the
whole object is called a(n):
A) dependent.
B) weak entity.
C) composition.
D) declarative.
Answer: C
Diff: 1 Page Ref: 13-20
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
37) Encapsulation is the technique of hiding the internal implementation details of an object from
its external view.
Answer: TRUE
Diff: 1 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
10
40) An association role is the end of an association where it connects to a class.
Answer: TRUE
Diff: 1 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Associations
41) Each role has a duplicity, which indicates how many objects participate in a given
relationship.
Answer: FALSE
Diff: 1 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Associations
11
46) A derived attribute, association, or role is one that can be computed or derived from other
attributes, associations, or roles.
Answer: TRUE
Diff: 2 Page Ref: 13-12
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Derived Attributes, Derived Associations, and Derived Roles
48) A class that can have direct instances is called an abstract class.
Answer: FALSE
Diff: 1 Page Ref: 13-14
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
49) According to the UML Notation Guide, the term disjoint means that a descendent may not be
descended from more than one of the subclasses.
Answer: TRUE
Diff: 2 Page Ref: 13-15
Topic: Object-Oriented Data Modeling
AACSB: Analytic Skills, Use of Information Technology
Subtopic: Representing Generalization
50) A class-scope attribute is an attribute of a class that specifies a value common to an instance
of a class.
Answer: FALSE
Diff: 2 Page Ref: 13-16
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
51) In addition to specifying the multiplicity of an association role, you can also specify other
properties, for example, if the objects playing the role are ordered or not.
Answer: TRUE
Diff: 2 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
12
52) An abstract operation describes the implementation of an operation.
Answer: FALSE
Diff: 2 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
53) Polymorphism occurs when the same operation may apply to two or more classes in different
ways.
Answer: TRUE
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
54) Overriding is the process of replacing a method inherited from a superclass by a more
specific implementation of that method in a subclass.
Answer: TRUE
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Interpreting Inheritance and Overriding
55) If a subclass of a company inherits an operation to compute a tax but extends the inherited
behavior by adding a foreign surcharge, this is an example of overriding for extension.
Answer: TRUE
Diff: 3 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Interpreting Inheritance and Overriding
56) Overriding for optimization implements a new operation with improved code by exploiting
the restrictions imposed by the superclass.
Answer: FALSE
Diff: 3 Page Ref: 13-18
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Interpreting Inheritance and Overriding
57) In overriding for restriction, the protocol of the new operation in the subclass is restricted.
Answer: TRUE
Diff: 2 Page Ref: 13-17, 13-18
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Multiple Inheritance
13
58) An aggregation expresses a part-of relationship between a component object and an
aggregate object.
Answer: TRUE
Diff: 1 Page Ref: 13-19
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
59) A composition is an instance of class that is made up of more than one class.
Answer: FALSE
Diff: 2 Page Ref: 13-20
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Multiple Inheritance
61) In aggregation, some of the operations of the whole automatically apply to its parts.
Answer: TRUE
Diff: 2 Page Ref: 13-20
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
62) State encompasses an object's properties and the values of those properties.
Answer: TRUE
Diff: 1 Page Ref: 13-4
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
63) An entity that has a well-defined role in the application domain and has a state, behavior, and
identity is called an object.
Answer: FALSE
Diff: 1 Page Ref: 13-4
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
14
64) A class diagram shows the static structure of an object-oriented model.
Answer: TRUE
Diff: 1 Page Ref: 13-5
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
65) A UML is a graph of instances that are compatible with a given class diagram.
Answer: FALSE
Diff: 1 Page Ref: 13-5
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
66) It is only through an operation that other objects can access or manipulate information stored
in an object.
Answer: TRUE
Diff: 2 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
67) Encapsulation is the technique of hiding the internal implementation details of an object from
its external view.
Answer: TRUE
Diff: 1 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Objects and Classes
69) An update operation has side effects since it alters the state of an object.
Answer: TRUE
Diff: 2 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
15
70) A query operation does not alter the state of an object.
Answer: TRUE
Diff: 2 Page Ref: 13-6
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Types of Operations
73) A duplicity specification in a class diagram is shown as a text string representing an interval
(or intervals) of integers.
Answer: FALSE
Diff: 2 Page Ref: 13-7
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Associations
74) An association that has its own attributes or operations or that participates in relationships
with other classes is called an association class.
Answer: TRUE
Diff: 1 Page Ref: 13-10
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Association Classes
16
75) A(n) deprived attribute, role or association is one that can be computed from other attributes,
roles, or associations.
Answer: FALSE
Diff: 2 Page Ref: 13-12
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Derived Attributes, Derived Associations, and Derived Roles
76) A class that has no direct instances but whose descendants may have direct instances is
called an abstract class.
Answer: TRUE
Diff: 1 Page Ref: 13-14
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
77) A class-scope attribute is an attribute of a class that specifies a value common to an entire
class, rather than a specific value for an instance.
Answer: TRUE
Diff: 1 Page Ref: 13-16
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
79) When an operation may apply to two or more classes in different ways, this is known as
polymorphism.
Answer: TRUE
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
17
80) The process of replacing a method inherited from a superclass by a more specific
implementation of that method in a subclass is called underwriting.
Answer: FALSE
Diff: 1 Page Ref: 13-17
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Interpreting Inheritance and Overriding
81) When an object is an instance of more than one class, this is known as multiple
classification.
Answer: TRUE
Diff: 1 Page Ref: 13-18
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Multiple Inheritance
82) Aggregation is a part-of relationship between a component object and an aggregate object.
Answer: TRUE
Diff: 2 Page Ref: 13-19
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
83) A part object that belongs to only one whole object and lives and dies with the whole object
is called composting.
Answer: FALSE
Diff: 1 Page Ref: 13-20
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
84) When some of the operations on a whole class automatically apply to its parts, the operation
is said to propagate.
Answer: FALSE
Diff: 3 Page Ref: 13-21
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Aggregation
18
85) What are several motivations and benefits of object-oriented modeling?
Answer: Coad and Yourdon identified several motivations and benefits:
1. The ability to tackle more challenging problem domains
2. Improved communication between users, analysts, designers and programmers
3. Increased consistency among analysis, design and programming activities
4. Explicit representation of a commonalty among system components
5. Robustness of systems
6. Reusability of analysis, design and programming results.
7. Increase consistency among all of the models
Diff: 3 Page Ref: 13-3
Topic: Introduction
AACSB: Analytic Skills
19
90) What is the difference between an abstract class and a concrete class?
Answer: An abstract class is a class that has no direct instances but whose direct descendants
may have direct instances. A concrete class, on the other hand, can have no direct instances.
Diff: 2 Page Ref: 13-14
Topic: Object-Oriented Data Modeling
AACSB: Use of Information Technology
Subtopic: Representing Generalization
20