volume_mute

Which Diagram for Which Purpose?

publish date2026/06/09 19:47:13.035989 UTC

volume_mute

Match each modeling need to the most appropriate UML diagram type.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Modeling Need

Show which external systems surround the system being developed and how it connects to them
Show the high-level interactions between a user role and the system as a set of discrete tasks
Show the detailed sequence of messages between objects during a specific interaction
Show the class hierarchy with inherited attributes and operations
Show how a real-time system transitions between states in response to events

Diagram Type

Sequence diagram
Use case diagram
Context model (with «system» stereotypes)
State diagram
Class diagram with generalization arrows

Correct Answer

(1) Show which external systems surround the system being developed and how it connects to them,Context model (with «system» stereotypes)
(2) Show the high-level interactions between a user role and the system as a set of discrete tasks,Use case diagram
(3) Show the detailed sequence of messages between objects during a specific interaction,Sequence diagram
(4) Show the class hierarchy with inherited attributes and operations,Class diagram with generalization arrows
(5) Show how a real-time system transitions between states in response to events,State diagram

Explanation

The right diagram for each purpose: Context model for environment/boundary; Use case diagram for high-level actor-task interactions; Sequence diagram for detailed message sequences during an interaction; Class diagram with generalization for class hierarchies showing inheritance; State diagram for event-driven behavior and state transitions in real-time systems.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears