CS FundamentalsModerateTCS · Infosys
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 are complete. Which elements model this?
- A. A decision node followed by a merge node
- B. Two swimlanes only
- C. A fork (bar) splitting into the two actions, then a join (bar) before 'Ship'
- D. An initial node and two final nodes
Correct answer: C. A fork (bar) splitting into the two actions, then a join (bar) before 'Ship'
Fork and join bars model concurrency and synchronisation. Decision and merge diamonds model alternative paths, where only one branch is taken.
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
- 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…
- Class Cart has 5 methods. Together they call 9 methods of other classes, of which 7 are distinct. What is its Response For a Class (RFC) =…