CS FundamentalsModerateService-company placement · UML

Match each UML sequence-diagram combined fragment with its meaning. P. alt Q. opt R. loop S. par 1. Runs only if its single guard is true 2. Chooses one of several guarded operands 3. Operands run concurrently, interleaved in any order 4. Repeats its operand while the guard holds or a set number of times

  1. A. P-1, Q-2, R-4, S-3
  2. B. P-2, Q-1, R-3, S-4
  3. C. P-2, Q-1, R-4, S-3
  4. D. P-2, Q-4, R-1, S-3

Correct answer: C. P-2, Q-1, R-4, S-3

alt is if/else-if with several guarded operands; opt is a single optional operand (an if without else); loop repeats; par runs its operands in parallel.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic