CS FundamentalsVery hardInfosys · Capgemini

In an ATM use-case diagram, 'Withdraw Cash' always performs 'Authenticate User', while 'Print Receipt' happens only when the customer asks for it. Which modelling is correct, including the arrow directions?

  1. A. Withdraw Cash <<extend>> Authenticate User (arrow to Authenticate); Withdraw Cash <<include>> Print Receipt
  2. B. Withdraw Cash <<include>> Authenticate User (arrow from Withdraw to Authenticate); Print Receipt <<extend>> Withdraw Cash (arrow from Print Receipt to Withdraw)
  3. C. Authenticate User <<include>> Withdraw Cash; Withdraw Cash <<extend>> Print Receipt
  4. D. Both are <<include>> relationships from Withdraw Cash

Correct answer: B. Withdraw Cash <<include>> Authenticate User (arrow from Withdraw to Authenticate); Print Receipt <<extend>> Withdraw Cash (arrow from Print Receipt to Withdraw)

<<include>> is mandatory behaviour, with the arrow from the base use case to the included one. <<extend>> is optional, conditional behaviour, with the arrow from the extending use case to the base it extends - the opposite direction.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic