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

Which of the following UML diagrams has a static view?

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

Show answer & explanation

Correct answer: B. Use-Case diagram

Explanation

UML diagrams split into structural (static) and behavioural (dynamic) views. The use-case diagram gives the static use-case view of a system: it shows actors, use cases and the relationships between them, with no ordering in time and no notion of state, so it is classified as static. The other three are all dynamic. A collaboration (communication) diagram shows the sequence of messages exchanged between objects, a state chart diagram shows how an object's state changes in response to events, and an activity diagram shows the flow of control through activities over time. Hence option 2.

More Programming Languages and Computer Graphics questions