UML Package and Component Diagrams - Software Design Question and Answers

1.

Which of these is true with respect to interfaces?

   A.) Interfaces in component diagram defines relationship between components and environment
   B.) Interfaces realized by a class or a component are required interfaces
   C.) Interface on which a class or component depends are called provided interfaces
   D.) All of the mentioned

Answer: Option 'A'

Interfaces in component diagram defines relationship between components and environment
 

2.

Which of these depicts the true definition for the UML extensions?

   A.) A constraint is a statement that must be true of the entities designated by one or more model elements
   B.) A property is a characteristic of the entity designated by a model element
   C.) A stereotype is a UML model element given more specific meaning
   D.) All of the mentioned

Answer: Option 'D'

All of the mentioned

3.

A package diagram consists of the following?

   A.) Package symbols
   B.) Groupings of Use cases, classes, components
   C.) Interface
   D.) Package symbols, Groupings of Use cases, classes & components

Answer: Option 'D'

Package symbols, Groupings of Use cases, classes & components

4.

What types of units does Component follow?

   A.) Modular Unit
   B.) Replaceable Unit
   C.) Unit with well defined interface
   D.) All of the mentioned

Answer: Option 'D'

All of the mentioned

5.

What does a component diagram consists of?

   A.) Components, their Relationship to the environment
   B.) Packages and dependency
   C.) Internal structure
   D.) Internal structure, Components & their Relationship to the environment

Answer: Option 'D'

Internal structure, Components & their Relationship to the environment

UML Package and Component Diagrams MCQs Download Pdf

Recent Posts