Database

Database

Object-Oriented Data Modeling has 30 Questions

The fact that the same operation may apply to two or more classes is called what?

Inheritance
Polymorphism
Encapsulation
Multiple classification
A method defines the form or protocol of the operation, but not its implementation.

True
False
The object-oriented development life cycle is which of the following?

Analysis, design, and implementation steps in the given order and using multiple iterations.
Analysis, design, and implementation steps in the given order and going through the steps no more than one time.
Analysis, design, and implementation steps in any order and using multiple iterations.
Analysis, design, and implementation steps in any order and going through the steps no more than one time.
A class is a concept, abstraction, or thing that makes sense in an application context.

True
False
Multiplicity is the same as what concept for an ERD?

Relationship
Attribute
Entity
Cardinality
In UML, a class is represented by a rectangle with three compartments separated by vertical lines.

True
False
Composition is a stronger form of which of the following?

Aggregation
Encapsulation
Inheritance
All of the above.
A solid diamond represents a stronger form of aggregation, known as composition.

True
False
An abstract class is which of the following?

A class that has direct instances, but whose descendants may have direct instances.
A class that has no direct instances, but whose descendants may have direct instances.
A class that has direct instances, but whose descendants may not have direct instances.
A class that has no direct instances, but whose descendants may not have direct instances
When a business rule involves three or more graphical symbols, you can show the constraint as a note and attach the note to each of the symbols by a dashed line.

True
False
The term Complete for a UML has the same meaning as which of the following for an EER diagram?

Overlapping rule
Disjoint rule
Total specialization rule
Partial specialization rule
A derived element is typically shown by placing either a slash (/) or a stereotype of <> before the name of the element.

True
False
A UML diagram includes which of the following?

Class name
List of attributes
List of operations
All of the above.
Composition does not allow an object to be part of more than one aggregate object.

True
False
An object can have which of the following multiplicities?

Zero
One
More than one
All of the above.
In an object diagram, an object is represented as a rectangle with two compartments.

True
False
Which of the following statement is true concerning objects and/or classes?

An object is an instance of a class.
A class is an instance of an object.
An object includes encapsulates only data.
A class includes encapsulates only data.
An operation that alters the state of an object is known as a constructor operation.

True
False
Which of the following applies to a class rather than an object?

Query
Update
Scope
Constructor
Each association has two or more roles.

True
False
The benefits of object-oriented modeling are which of the following?

The ability to tackle more challenging problems
Reusability of analysis, design, and programming results
Improved communication between users, analysts, etc.
All of the above.
An aggregation is a stronger form of association relationship and is represented with a solid diamond at the aggregate end.

True
False
The term Incomplete for a UML has the same meaning as which of the following for an EER diagram?

Overlapping rule
Disjoint rule
Total specialization rule
Partial specialization rule
The UML notation is useful for graphically depicting an object-oriented analysis or design model.

True
False
A constructor operation does which of the following?

Creates a new instance of a class
Updates an existing instance of a class
Deletes and existing instance of a class
All of the above.
Multiple inheritance allows a class to inherit features from more than one superclass.

True
False
Which of the following is a technique for hiding the internal implementation details of an object?

Encapsulation
Polymorphism
Inheritance
All of the above.
The reasons for overriding include extension, restriction, and optimization.

True
False
Aggregation is which of the following?

Expresses a part-of relationship and is a stronger form of an association relationship.
Expresses a part-of relationship and is a weaker form of an association relationship.
Expresses an is-a relationship and is a stronger form of an association relationship.
Expresses an is-a relationship and is a weaker form of an association relationship.
An object's state is determined by its attribute values and links to other objects.

True
False