UML Diagrams MCQs Questions With Answers – Part 24
Test your knowledge and boost your confidence with these multiple-choice quizzes focused on UML diagrams, foundational software engineering concepts, and real-world best practices. Designed for students, developers, and exam candidates, these MCQs offer a quick and effective way to assess your understanding and sharpen your skills.
1. In a UML state diagram, what is the name of the special state that an object enters at the very beginning of its existence?
A Termination state
B Initial state
C Final state
D Waiting pseudo-state
2. In UML, what symbol indicates a derived (or calculated) association?
A A dotted arrow
B A small diamond
C A line with a / before the association name
D A line with a cross in the middle
3. What is the role of a role name in a UML association?
A Define an operation to perform
B Specify the associated data type
C Name how one class views the other
D Label a dependency for documentation
4. You’re creating a hotel app. A client can book several rooms, but rooms exist independently. What type of relationship is this?
A Composition
B Association
C Dependency
D Aggregation
5. How is the destruction of an object represented in a UML sequence diagram?
A An empty square at the bottom of its lifeline
B A cross (X) at the end of its lifeline
C A dashed line
D A transition with a red arrow
6. What is the particularity of the method convertCurrency()?

A It can access instance attributes
B It requires an instance of the class to be used
C It is a static method accessible without creating an object
D It is abstract
7. What is an active class in UML?
A A class that inherits from multiple interfaces
B An abstract class with at least one virtual method
C A class whose instances have their own thread of execution
D A class that can only be instantiated once
8. You’re modeling a movie rental system. A movie can have multiple versions (HD, SD, etc.). What is the relationship between them?
A Association
B Dependency
C Composition
D Aggregation
9. In UML, what does an association with multiplicity 0..1 exactly mean?
A The attribute is mandatory.
B The class must have at least one instance.
C The association is optional, at most one occurrence.
D The object is unique in the model.
10. In an event management app, an event can be organized by multiple people. What type of relationship is this?
A Aggregation
B Dependency
C Composition
D Association