Software Development and Project Management

In UML, which diagram shows the messages (calls and replies) exchanged between several objects in time order from top to bottom?

  1. AActivity diagram
  2. BSequence diagram
  3. CClass diagram
Show answer and explanation

Answer: B. Sequence diagram

In a sequence diagram, a vertical line (lifeline) is drawn for each object, and the messages between them are drawn as arrows in time order. For example, it is used to check the order of an interaction in which an application calls a driver, the driver writes to a register of a peripheral, and completion is signaled by an interrupt. An activity diagram shows the flow of processing, including branches and concurrent processing, much like a flowchart. A class diagram shows the structure and relationships of classes rather than time order.

  • A. This diagram shows the flow of processing, including branches and concurrency; it does not arrange messages between objects in time order.
  • B. Correct. It shows the exchange of messages between objects in time order.
  • C. This static diagram shows the structure and relationships of classes, not time order.
Practice this topic Back to topic

Related calculators

Books on Software Development and Project Management Ad

As an Amazon Associate I earn from qualifying purchases.

More Software Development and Project Management questions

  1. Among the levels of module strength (cohesion) used to evaluate module independence, which has the highest strength and is considered most desirable?
  2. Among the types of coupling between modules, which is the weakest and gives the highest module independence?
  3. Which GoF design pattern makes the objects that depend on an object be notified automatically when that object's state changes?
  4. When a static analysis tool is used on firmware source code, which problem is it best suited to finding without running the program?
  5. Which describes black-box testing?