UML Diagrams MCQs Questions With Answers – Part 17
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. Which UML relationship expresses the strongest dependency link between two classes?
A Association
B Dependency
C Aggregation
D Composition
2. In a video game with characters, how would you model the relationship between a main character and its allies?
A Association
B Composition
C Aggregation
D Dependency
3. To model the state changes of an online shopping cart, which diagram would be the most appropriate?
A Sequence Diagram
B State Diagram
C Use Case Diagram
D Class Diagram
4. What is the difference with a synchronous message?
A The asynchronous message does not wait for a response
B The asynchronous message creates a new instance
C The asynchronous message is not sent to the user
D There is no difference, it’s the same message
5. In a user management system, which diagram would model the sequence of actions during the creation of a user account?
A Communication Diagram
B Sequence Diagram
C Class Diagram
D Deployment Diagram
6. In a taxi reservation system, what type of UML relationship would you use to link a taxi to its drivers?
A Aggregation
B Dependency
C Association
D Composition
7. What is the fundamental difference between an abstract class and an interface in this diagram?

A Interfaces cannot have abstract methods
B A class can implement multiple interfaces but inherit from only one abstract class
C Interfaces are used to contain attributes
D Abstract classes cannot have methods
8. I am a rectangle, sometimes with an empty triangle, I connect a concrete class to an interface. Who am I?
A Realization
B Association
C Dependency
D Inheritance
9. You want to show where your website will be deployed: servers, browser, database, etc. Which diagram should you choose?
A Use Case Diagram
B Deployment Diagram
C Class Diagram
D Component Diagram
10. You want to represent the evolution of a support ticket: “open” → “in progress” → “resolved” or “closed”. Which diagram would you use?
A Class Diagram
B Activity Diagram
C State Diagram
D Sequence Diagram