All mock tests are FREE till 31 December — register to save your progress

Match each UML diagram in List-I with the appropriate description in List-II:
List-I
(a) State Diagram
(b) Use-Case Diagram
(c) Class Diagram
(d) Activity Diagram
List-II
(i) Describes how the external entities (people, devices) can interact with the system
(ii) Used to describe the static or structural view of a system
(iii) Used to show the flow of a business process, the steps of a use-case or the logic of an object behaviour
(iv) Used to describe the dynamic behaviour of objects and could also be used to describe the entire system behaviour

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. (a)-(iv), (b)-(i), (c)-(ii), (d)-(iii)

Explanation

The correct matching is (a)-(iv), (b)-(i), (c)-(ii), (d)-(iii). A state diagram is a behavioural diagram that tracks how an object changes state in response to events, so it describes dynamic behaviour (iv). A use-case diagram shows actors, that is external people or devices, and how they interact with the system (i). A class diagram is the classic structural diagram showing classes, attributes and relationships, i.e. the static view (ii). An activity diagram models the step-by-step flow of a business process or of the logic inside a use case (iii). Only option (3) assigns all four correctly.

More Programming Languages and Computer Graphics questions