250+ TOP MCQs on Building Blocks of UML and Answers

Software Engineering Multiple Choice Questions 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

Answer: d
Clarification: 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

Answer: a
Clarification: 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

Answer: c
Clarification: None.

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

Answer: a
Clarification: 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

Answer: c
Clarification: An operation is the implementation of a service that can be requested from any object of the class to affect behavior.

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

Answer: b
Clarification: 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

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

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

  250+ TOP MCQs on Component Level Design and Answers

Answer: b
Clarification: 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

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

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

Answer: a
Clarification: 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

Answer: d
Clarification: 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

Answer: a
Clarification: 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

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

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top