Model Refinement   «Prev  Next»

Refactoring and Encapsulation - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Which statement best describes the goal of refactoring?
Please select the best answer.
  A. Separate the interface of an object from the implementation of the object.
  B. Describe patterns of object interaction at every level of abstraction.
  C. Identify opportunities to integrate business process reengineering with the development process.
  D. Identify the problems caused by a process and change the process to prevent the problems.

2. Where should you apply the principle of encapsulation?
Please select the best answer.
  A. At every level of abstraction, for example, objects, components, applications, job descriptions, departments, companies, and systems
  B. At every level of the software modeling process, for example, objects, classes, packages, components, nodes, and systems
  C. To objects and to actors because job descriptions should be defined by responsibility in the same way the objects are defined
  D. To objects and all the diagrams that illustrate how objects work; this ensures that the objects are defined and used consistently throughout the model

3. How does encapsulation affect how you describe objects in your model?
Please select the best answer.
  A. The object implementation drives the design of the object so that the modeling process can take advantage of the features of the technology.
  B. The object implementation is defined separate from the object interface.
  C. The object interface is hidden within the definition of the object responsibilities.
  D. The object interface is defined after an implementation has been established in the project constraints.

4. What is the benefit of encapsulation?
Please select the best answer.
  A. You can focus on object responsibilities and postpone implementation choices.
  B. Encapsulation improves cohesion and coupling.
  C. You can customize interfaces to exploit different implementations.
  D. Encapsulation limits the interface to the events documented in the sequence diagrams.

5. Why have so many companies failed to reap the touted benefits of object-oriented modeling?
Please select the best answer.
  A. Object-oriented development is often too sophisticated for people who are used to procedural techniques such as structured analysis.
  B. The technologies available to support true object-oriented designs are not mature enough yet.
  C. Companies lack commitment to reuse and try to use procedural or data-driven processes.
  D. Legacy systems are typically procedural by design so they defy conversion to an object-oriented approach.

Correct answers:

Your Score: 0