Containment Delegation  «Prev  Next»

COM Component Reuse - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 

1. C++ inheritance is
Please select the best answer.
  A. A reuse mechanism that integrates objects at runtime
  B. A reuse mechanism that integrates objects at development/build time
  C. Not a reuse mechanism
  D. A binary reuse mechanism

2. Component reuse is
Please select the best answer.
  A. How one component inherits functionality from another
  B. Not very useful because it does not support inheritance
  C. Based on object composition at runtime
  D. A source-code-based mechanism

3. Object composition can be
Please select the best answer.
  A. A limited mechanism because it does not support inheritance
  B. Multilevel, that is, object A reuses object B, which reuses object C
  C. Set up when you compile your code
  D. Obtained by inheriting the implementation of a set of base objects

4. Assume we have a client, the FileManager component, and the FindFile component. Which of the following is correct?
Please select the best answer.
  A. The client is aware that FileManager is using the FindFile component.
  B. The client can tell FileManager not to load FindFile.
  C. The client sees only the FileManager component; FileManager is a composition of two components, namely itself and FindFile.
  D. The client links to a library that contains object definitions for FileManager and FindFile.

Correct answers:

Your Score: 0