1. Which among the following are not the valid notations for package and component diagram?
a) Notes
b) Box
c) Extension Mechanisms
d) Packages
Explanation: Boxes are the notations for box and line diagram.
2. 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
Explanation: A dependency relation holds between two entities D and I where change in I affects D.
3. 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
Explanation: All the mentioned statements are true definitions.
4. What is a collection of model elements called?
a) Box
b) Dependency
c) UML packages
d) Package members
Explanation: UML Package is a collection of model elements called package members.
5. 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
Explanation: A package diagram consists of package symbols, groupings of use cases, classes, components, etc.
6. What types of units does Component follow?
a) Modular Unit
b) Replaceable Unit
c) Unit with well defined interface
d) All of the mentioned
Explanation: A component consists of modular, replaceable unit with well defined interface.
7. Components can be represented by which of the following?
a) Component symbols
b) Stereotypes
c) Rectangular boxes
d) Component symbols & Stereotypes
Explanation: Components can be expressed by Symbols and 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
Explanation: Component diagram consists of components, relationship to the environment and their internal structure.
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
Explanation: Interfaces realized by a class or a component are provided interfaces whereas Interfaces on which a class or component depends are called required interfaces.
10. Which of these are diagrammatic heuristics?
a) Use notes, constraints, properties and stereotypes to add information to UML models
b) Use Stereotypes to name dependencies
c) Use packages to group elements in static models
d) All of the mentioned
Explanation: All of the mentioned are the respective heuristics to be followed for the UML models diagram.