Object Diagram - Quiz Explanation

The answers you selected are indicated below, along with text that explains the correct answers.
 
1. Attributes are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is C. Attributes are found in both the object diagram and the class diagram.

2. Attribute values are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is B. Attribute values are found in the object diagram only. The class diagram contains only attribute definitions.

3. Constraints are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is A. Constraints are found only in the class diagram. Constraints describe rules to which instances/objects must conform when they implement the class.

4. Multiplicity is found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is A. Multiplicity is found only in the class diagram. Multiplicity defines how many objects participate in an association. In an object diagram, each end of an association is linked to one and only one object.

5. Associations are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is A. Associations are found only in the class diagram. Associations are the rules for linking objects from the associated classes. In an object diagram, the connections are called links and are real connections, not definitions of connections.

6. Operations are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is A. Operations are found only in the class diagram. Operations are specifications for behavior that objects of the class own. Operations are not shown on object diagrams because they would be exactly the same for every object of the same class.

7. Class names are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is C. Class names are used on both diagrams. In the class diagram, the name stands alone. In the object diagram, the class name appears in the format objectname :classname or :classname.

8. Object names are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is B. Object names appear only in the object diagram. We will see other diagrams later that use the object-level references. But so far we have only seen objects in the object diagram.

9. Links are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is B. Links are found only in the object diagram. Links are real connections, whereas associations are definitions of allowed types of connections.

10. Roles are found in
Please select the best answer.
  A. A class diagram
  B. An object diagram
  C. Both a class diagram and an object diagram
  D. Neither a class diagram nor an object diagram
  The correct answer is C. Roles are found on both diagrams. Roles describe the nature of the participation of objects in a relationship. In the class diagram, the role would describe the kind of participation to which the objects must conform. In the object diagram, the role describes the actual kind of participation for a specific object.