CS FundamentalsHardInfosys · Wipro

In a UML sequence diagram, how are a synchronous call, an asynchronous message and a return message usually drawn?

  1. A. Synchronous: solid line with a filled arrowhead; asynchronous: solid line with an open arrowhead; return: dashed line with an open arrowhead
  2. B. All three use dashed lines
  3. C. Synchronous: dashed line; asynchronous: solid line with a filled arrowhead; return: solid line
  4. D. Synchronous: open arrowhead; asynchronous: filled arrowhead; return: no line

Correct answer: A. Synchronous: solid line with a filled arrowhead; asynchronous: solid line with an open arrowhead; return: dashed line with an open arrowhead

The filled head shows that the caller waits; the open (stick) head means it does not; dashed lines show replies. Reading these correctly matters for spotting blocking calls in a design.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic