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?

  1. A. A decision node followed by a merge node
  2. B. Two swimlanes only
  3. C. A fork (bar) splitting into the two actions, then a join (bar) before 'Ship'
  4. 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.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic