Problem Analysis  «Prev  Next»

Problem Analysis - Quiz

Select the best answer or answers for each question.
 
1. What is the purpose of problem analysis?
Please select the best answer.
  A. To understand the purpose and interfaces of the key problem domain classes
  B. To understand and model the relationships between the problem domain classes
  C. To understand the software resources needed to support the problem domain
  D. To understand the resources used by the problem domain

2. What is the scope of problem analysis?
Please select the best answer.
  A. To define the purpose and interface of the problem domain resources
  B. To define the purpose, attributes, and behaviors of the problem domain resources
  C. To define the implementation of the problem domain resources
  D. To define the relationships between the problem domain resources

3. How is generalization different from other associations?
Please select the best answer.
  A. Generalization defines the type of association using a triangle instead of an association name.
  B. Generalization defines the attributes and operations that a set of objects has in common.
  C. Generalization defines the organization of parts of a class definition whereas association defines how objects are related to one another.
  D. Generalization defines classes as parts of a whole with one interface rather than as distinct entities with separate interfaces.

4. Why would you use aggregation if it does not generate different code than a regular association?
Please select the best answer.
  A. To simplify the representation of a collection of related objects using a diamond instead of an association name
  B. To communicate that all interactions with this assembly of objects should be performed through the aggregate object interface
  C. To show how a set of objects is assembled
  D. To communicate to the developer how to assemble a set of objects to create a new object

5. An association describes a relationship between
Please select the best answer.
  A. Objects in different classes
  B. Multiple objects
  C. An object in one class and objects in another class
  D. Objects in the same class

6. How is a discriminator used?
Please select the best answer.
  A. To identify the rules that govern the multiplicity on an association
  B. To identify the factors that allow two objects to be associated
  C. To identify the levels of a multilayered generalization
  D. To identify the distinguishing factor(s) between subclasses in a generalization

7. How do you determine multiplicity?
Please select the best answer.
  A. Ask "How many objects of one class are associated with one object of the other class?"
  B. Ask "How many objects in each class are associated with objects of the other class?"
  C. Ask "How many objects can participate in this type of relationship?"
  D. Ask "How many objects of one class are associated with one object of the other class at any given point in time?"

8. What elements make up the description of an association?
Please select the best answer.
  A. An association line, multiplicity, an association name, and constraints
  B. An association line, name and/or roles, and optionally constraints
  C. An association line, multiplicity, name and/or roles, and optionally constraints
  D. An association line, multiplicity on both ends, and name and/or roles

9. What distinguishes aggregation from composition?
Please select the best answer.
  A. Composition defines a life span dependency between parts and the whole, whereas aggregation does not.
  B. Aggregation defines the assembly of logical components rather than physical components.
  C. Composition defines a physical assembly of objects, whereas aggregation may be used for both logical and physical assemblies.
  D. Aggregation defines the history of the parts used in an assembly over time, whereas composition does not.

10. When would you use a qualified association?
Please select the best answer.
  A. To map directly to the indexing required on the database
  B. To communicate to the developer how the database access works in legacy systems
  C. To reduce multiplicity when navigating across an association
  D. To reduce the time it takes to map the logical model to the physical implementation

Correct answers:

Your Score: 0