Software Engineering Questions and Answers – Building Blocks of UML

This set of Software Engineering Multiple Choice Questions & Answers (MCQs) focuses on “Building Blocks of UML”.

1. Which of the following is a building block of UML?
a) Things
b) Relationships
c) Diagrams
d) All of the mentioned
View Answer

Answer: d
Explanation: All are the building blocks of UML which are further sub-categorized.

2. Classes and interfaces are a part of
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
View Answer

Answer: a
Explanation: Structural things are mostly static parts of a model, representing elements that are either conceptual or physical.

3.What is a collection of operations that specify a service of a class or component?
a) Use Case
b) Actor
c) Interface
d) Relationship
View Answer

Answer: c
Explanation: None.
advertisement
advertisement

4. What is a physical element that exists at runtime in UML?
a) A node
b) An interface
c) An activity
d) None of the mentioned
View Answer

Answer: a
Explanation: A node represents a computational resource.

5. What can be requested from any object of the class to affect behavior?
a) object
b) attribute
c) operation
d) instance
View Answer

Answer: c
Explanation: An operation is the implementation of a service that can be requested from any object of the class to affect behavior.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. Which things are dynamic parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
View Answer

Answer: b
Explanation: These are the verbs of a model, representing behavior over time and space.

7. Which diagram in UML emphasizes the time-ordering of messages?
a) Activity
b) Sequence
c) Collaboration
d) Class
View Answer

Answer: b
Explanation: This diagram is a model describing how groups of objects collaborate in some behavior over time.
advertisement

8. Object diagram captures the behavior of a single use case.
a) True
b) False
View Answer

Answer: b
Explanation: Sequence Diagram is responsible for this.

9. If you are working on real-time process control applications or systems that involve concurrent processing, you would use a
a) Activity diagram
b) Sequence diagram
c) Statechart diagram
d) Object diagram
View Answer

Answer: c
Explanation: A statechart diagram shows a state machine, consisting of states, transitions, events, and activities.
advertisement

10. Which diagram shows the configuration of run-time processing elements?
a) Deployment diagram
b) Component diagram
c) Node diagram
d) ER-diagram
View Answer

Answer: a
Explanation: A Deployment diagram shows the configuration of run-time processing elements and the software components, processes, and objects.

11. Which things in UML are the explanatory parts of UML models?
a) Structural things
b) Behavioral things
c) Grouping things
d) Annotational things
View Answer

Answer: d
Explanation: It include a note which is simply a symbol for rendering constraints and comments attached to an element or a collection of elements.

12. Which of the following term is best defined by the statement:”a structural relationship that specifies that objects of one thing are connected to objects of another”?
a) Association
b) Aggregation
c) Realization
d) Generalization
View Answer

Answer: a
Explanation: None.

13. What refers to the value associated with a specific attribute of an object and to any actions or side?
a) Object
b) State
c) Interface
d) None of the mentioned
View Answer

Answer: b
Explanation: In a state chart diagram, effects occur when the attribute’s value changes.

Sanfoundry Global Education & Learning Series – Software Engineering.

Here’s the list of Best Books in Software Engineering.

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.