Logical View  «Prev  Next»

Aggregation and Composition - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. A PC is composed of a motherboard, disk drives, and I/O devices. The PC is sold as a single unit without optional configurations. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

2. A travel package consists of airfare, hotel, and rental car reservations. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

3. Employees use our company cars. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

4. The motors in the generators are replaced every 6 months. The motors are rebuilt and put back into service. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

5. PCs are assigned to employees and follow them to each new job assignment. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

6. A class is composed of 5 to 20 students and one or more instructors. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

7. Our printers have replaceable ink cartridges, but we do not keep the cartridge when we dispose of the printer. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

8. Each kit comes with four spare widgets. Incomplete kits are destroyed. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

9. These phones are so cheap that when parts such as the speaker or microphone fail, we just replace the whole phone. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association

10. Our company is actually made up of a number of smaller companies. This example should be modeled as
Please select the best answer.
  A. Aggregation
  B. Composition
  C. Association


Your Score: 0


UML Distilled