UML Package and Component Diagrams - Software Design Question and Answers

1.

What is a collection of model elements called?

   A.) Box
   B.) Dependency
   C.) UML packages
   D.) Package members

Answer: Option 'D'

Package members

2.

Which of the following is incorrect in reference to dependency?

   A.) Module D uses module I when a correct version of I must be present for D to work correctly
   B.) Module D depends for compilation on module I
   C.) Class I imports elements from package D
   D.) None of the mentioned

Answer: Option 'C'

Class I imports elements from package D

3.

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

4.

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

5.

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

6.

Which of the following statement is false?

   A.) A note is a dog-eared box connected to any model element by a dashed line
   B.) The main way to extend UML is by constraints, properties, etc
   C.) A dependency relation holds between two entities D and I where change in I does not affect D
   D.) All of the mentioned

Answer: Option 'C'

A dependency relation holds between two entities D and I where change in I does not affect D
 

7.

Components can be represented by which of the following?

   A.) Component symbols
   B.) Stereotypes
   C.) Rectangular boxes
   D.) Component symbols & Stereotypes

Answer: Option 'D'

Component symbols & Stereotypes

8.

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

9.

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
 

10.

Which among the following are not the valid notations for package and component diagram?

   A.) Box
   B.) Notes
   C.) Extension Mechanisms
   D.) Packages

Answer: Option 'A'

Box


UML Package and Component Diagrams MCQs Download Pdf

Recent Posts