CS FundamentalsHardInfosys · Wipro
In a UML sequence diagram, how are a synchronous call, an asynchronous message and a return message usually drawn?
- A. Synchronous: solid line with a filled arrowhead; asynchronous: solid line with an open arrowhead; return: dashed line with an open arrowhead
- B. All three use dashed lines
- C. Synchronous: dashed line; asynchronous: solid line with a filled arrowhead; return: solid line
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- In a UML activity diagram, after an order is paid, 'Pack items' and 'Send invoice' happen in parallel, and 'Ship' may start only when both…
- A class diagram shows a dashed line with a hollow triangle from PaymentService to the interface IPayment, and a solid line with a hollow…
- Student and Course have a many-to-many association with an association class Enrollment holding the grade. If 30 students each enrol in 4…
- A change to how GST is calculated forces small edits in nine different classes across the code base. Which code smell is this, and how…
- Match each code smell with the refactoring that usually fixes it. P: a method takes 9 parameters, several of which always travel together…
- Using the Chidamber-Kemerer metric CBO (coupling between objects: the number of other classes a class is coupled to, counting both classes…