logo

CuriousTab

CuriousTab

Discussion


Home Database Object-Oriented Data Modeling Comments

  • Question
  • Which of the following statement is true concerning objects and/or classes?


  • Options
  • A. An object is an instance of a class.
  • B. A class is an instance of an object.
  • C. An object includes encapsulates only data.
  • D. A class includes encapsulates only data.

  • Correct Answer
  • An object is an instance of a class. 


  • Object-Oriented Data Modeling problems


    Search Results


    • 1. A UML diagram includes which of the following?

    • Options
    • A. Class name
    • B. List of attributes
    • C. List of operations
    • D. All of the above.
    • Discuss
    • 2. Which of the following applies to a class rather than an object?

    • Options
    • A. Query
    • B. Update
    • C. Scope
    • D. Constructor
    • Discuss
    • 3. Aggregation is which of the following?

    • Options
    • A. Expresses a part-of relationship and is a stronger form of an association relationship.
    • B. Expresses a part-of relationship and is a weaker form of an association relationship.
    • C. Expresses an is-a relationship and is a stronger form of an association relationship.
    • D. Expresses an is-a relationship and is a weaker form of an association relationship.
    • Discuss
    • 4. Which of the following is a technique for hiding the internal implementation details of an object?

    • Options
    • A. Encapsulation
    • B. Polymorphism
    • C. Inheritance
    • D. All of the above.
    • Discuss
    • 5. The fact that the same operation may apply to two or more classes is called what?

    • Options
    • A. Inheritance
    • B. Polymorphism
    • C. Encapsulation
    • D. Multiple classification
    • Discuss
    • 6. The benefits of object-oriented modeling are which of the following?

    • Options
    • A. The ability to tackle more challenging problems
    • B. Reusability of analysis, design, and programming results
    • C. Improved communication between users, analysts, etc.
    • D. All of the above.
    • Discuss
    • 7. An object can have which of the following multiplicities?

    • Options
    • A. Zero
    • B. One
    • C. More than one
    • D. All of the above.
    • Discuss
    • 8. An abstract class is which of the following?

    • Options
    • A. A class that has direct instances, but whose descendants may have direct instances.
    • B. A class that has no direct instances, but whose descendants may have direct instances.
    • C. A class that has direct instances, but whose descendants may not have direct instances.
    • D. A class that has no direct instances, but whose descendants may not have direct instances
    • Discuss
    • 9. Composition is a stronger form of which of the following?

    • Options
    • A. Aggregation
    • B. Encapsulation
    • C. Inheritance
    • D. All of the above.
    • Discuss
    • 10. A constructor operation does which of the following?

    • Options
    • A. Creates a new instance of a class
    • B. Updates an existing instance of a class
    • C. Deletes and existing instance of a class
    • D. All of the above.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment