Software Engineering Questions and Answers – Diagrams in UML – 1

This set of Software Engineering Multiple Choice Questions & Answers (MCQs) focuses on “Diagrams in UML – 1”.

1. Which of the following UML diagrams has a static view?
a) Collaboration
b) Use case
c) State chart
d) Activity
View Answer

Answer: b
Explanation: A use case diagrams captures only the functionality of the system whereas a dynamic model/view captures the functions as well as the action.

2. What type of core-relationship is represented by the symbol in the figure below?
The type of core-relationship represented by the symbol in the figure is Aggregation
a) Aggregation
b) Dependency
c) Generalization
d) Association
View Answer

Answer: a
Explanation: None.

3. Which core element of UML is being shown in the figure?
The core element of UML being shown in the figure is Component
a) Node
b) Interface
c) Class
d) Component
View Answer

Answer: d
Explanation: The figure is self explanatory. A component is a modular, significant and replaceable part of the system that packages implementation and exposes a set of interfaces.
advertisement
advertisement

4. What type of relationship is represented by Shape class and Square ?
The type of relationship represented by Shape class & Square is Generalization
a) Realization
b) Generalization
c) Aggregation
d) Dependency
View Answer

Answer: b
Explanation: The generalization relationship is also known as the inheritance relationship. In the figure Square is the subclass of superclass shape.

5. 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
View Answer

Answer: d
Explanation: An object diagram focuses 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.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. 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
View Answer

Answer: a
Explanation: Interaction diagram are used to formalize the dynamic behavior of the system.

7. Structure diagrams emphasize the things that must be present in the system being modeled.
a) True
b) False
View Answer

Answer: a
Explanation: Since structure diagrams represent the structure they are used extensively in documenting the architecture of software systems
advertisement

8. Which of the following diagram is time oriented?
a) Collaboration
b) Sequence
c) Activity
d) None of the mentioned
View Answer

Answer: b
Explanation: A sequence diagrams timeline along which tasks are completed.

Sanfoundry Global Education & Learning Series – Software Engineering.

advertisement

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.