Object Oriented Data Modeling(Database ) Questions and Answers

Question 1. The fact that the same operation may apply to two or more classes is called what?
  1.    Inheritance
  2.    Polymorphism
  3.    Encapsulation
  4.    Multiple classification
Explanation:-
Answer: Option B. -> Polymorphism

Question 2. The object-oriented development life cycle is which of the following?
  1.    Analysis, design, and implementation steps in the given order and using multiple iterations.
  2.    Analysis, design, and implementation steps in the given order and going through the steps no more than one time.
  3.    Analysis, design, and implementation steps in any order and using multiple iterations.
  4.    Analysis, design, and implementation steps in any order and going through the steps no more than one time.
Explanation:-
Answer: Option A. -> Analysis, design, and implementation steps in the given order and using multiple iterations.

Question 3. Composition is a stronger form of which of the following?
  1.    Aggregation
  2.    Encapsulation
  3.    Inheritance
  4.    All of the above
Explanation:-
Answer: Option A. -> Aggregation

Question 4. Multiplicity is the same as what concept for an ERD?
  1.    Relationship
  2.    Attribute
  3.    Entity
  4.    Cardinality
Explanation:-
Answer: Option D. -> Cardinality

Question 5. An abstract class is which of the following?
  1.    A class that has direct instances, but whose descendants may have direct instances.
  2.    A class that has no direct instances, but whose descendants may have direct instances.
  3.    A class that has direct instances, but whose descendants may not have direct instances.
  4.    A class that has no direct instances, but whose descendants may not have direct instances
Explanation:-
Answer: Option B. -> A class that has no direct instances, but whose descendants may have direct instances.

Question 6. A derived element is typically shown by placing either a slash (/) or a stereotype of before the name of the element.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 7. An operation that alters the state of an object is known as a constructor operation.
  1.    True
  2.    False
Explanation:-
Answer: Option B. -> False

Question 8. Composition does not allow an object to be part of more than one aggregate object.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 9. In an object diagram, an object is represented as a rectangle with two compartments.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True

Question 10. Each association has two or more roles.
  1.    True
  2.    False
Explanation:-
Answer: Option A. -> True