Analysis Work Products - Quiz Explanation

The correct answers are indicated below, along with text that explains the correct answers.
 
1. What is the purpose of the use case model?
Please select the best answer.
  A. To define the resources of the problem domain
  B. To define the test cases for the system
  C. To define the users' expectations for the system
  D. To define interactions between objects
  The correct answer is C.
The purpose of the use case model is to define the users' expectations for the system. A is incorrect because the object model is used to define the resources of the problem domain. B is incorrect because scenarios are used to define the test cases for the system. D is incorrect because the sequence and collaboration diagrams are used to define interactions between objects.

2. What is the purpose of the object model?
Please select the best answer.
  A. To define the resources of the problem domain
  B. To define the test cases for the system
  C. To define the users' expectations for the system
  D. To define interactions between objects
  The correct answer is A.
The purpose of the object model is to define the resources of the problem domain. B is incorrect because scenarios define the test cases for the system, not the object model. C is incorrect because the use case model is used to define the users' expectations for the system. D is incorrect because the sequence and collaboration diagrams are used to define interactions between objects.

3. How do the interaction diagrams help define attributes?
Please select the best answer.
  A. Objects participate in interactions. Objects must have attributes.
  B. Interactions require an identifier for the target object. The identifier is an attribute of the object.
  C. Attributes contain values that hold the results of the interactions.
  D. Attributes contain values that are passed as arguments and return values in object interactions.
  The correct answer is D.
Interaction diagrams help define attributes because attributes contain values that are passed as arguments and return values in object interactions. A value cannot be passed as an argument if it cannot be found in an attribute on some object or created by an operation that belongs to an object (a derived attribute). A is incorrect because it does not explain how interactions help define which attributes should be on an object. B is incorrect because objects may be accessed simply by an object reference without any unique identifier. Also, this answer does not explain how the need for other types of attributes, besides qualifiers, are identified. C is incorrect because attributes also hold the values that are used as arguments.

4. Why is it important to identify scenarios for each use case?
Please select the best answer.
  A. To define the screen flow for the application
  B. To define the test cases for the system
  C. To define the users' expectations for the system
  D. To define interactions between objects
  The correct answer is B.
It is important to identify scenarios because they define the test cases for the system. The test cases are essential for verifying the correctness of the models at each phase of development. A is incorrect because screen flow is determined during design, based on use case dependencies, transaction definitions, and usability. C is incorrect; the use case model is used to define the users' expectations for the system. D is incorrect because the sequence and collaboration diagrams are used to define interactions between objects.

5. What is the purpose of the object diagram?
Please select the best answer.
  A. To define the resources of the problem domain
  B. To define the test cases for the system
  C. To understand or test the object definitions that are modeled in the class diagram
  D. To understand or test the scenarios that are modeled in the use case diagram
  The correct answer is C.
The purpose of the object diagram is to understand or test the object definitions that are modeled in the class diagram. A is incorrect because the class diagram is used to define the resources of the problem domain. B is incorrect because scenarios are used to define the test cases for the system. D is incorrect because the object diagram tests objects and object structure, not object interactions. However, the object notation is used in the sequence and collaboration diagrams.