Software Engineering Multiple Choice Questions & Answers on “Diagrams in UML”.
1. How many diagrams are here in Unified Modelling Language?
a) six
b) seven
c) eight
d) nine
Answer: d
Clarification: The nine UML diagrams include use-case, sequence, collaboration, activity, state-chart, deployment, class, object and component.
2. Which of the following UML diagrams has a static view?
a) Collaboration
b) Use case
c) State chart
d) Activity
Answer: b
Clarification: A use case diagrams captures only the functionality of the system whereas a dynamic model/view captures the functions as well as the action.
3. Which diagram in UML shows a complete or partial view of the structure of a modeled system at a specific time?
a) Sequence Diagram
b) Collaboration Diagram
c) Class Diagram
d) Object Diagram
Answer: d
Clarification: An object diagram on some particular set of object instances and attributes, and the links between the instances. It is a static snapshot of a dynamic view of the system.
4. Interaction Diagram is a combined term for
a) Sequence Diagram + Collaboration Diagram
b) Activity Diagram + State Chart Diagram
c) Deployment Diagram + Collaboration Diagram
d) None of the mentioned
Answer: a
Clarification: Interaction diagram are used to formalize the dynamic behavior of the system.
5. Structure diagrams emphasize the things that must be present in the system being modeled.
a) True
b) False
Answer: a
Clarification: Since structure diagrams represent the structure they are used extensively in documenting the architecture of software systems
6. Which of the following diagram is time oriented?
a) Collaboration
b) Sequence
c) Activity
d) None of the mentioned
Answer: b
Clarification: A sequence diagrams timeline along which tasks are completed.
