CS FundamentalsModerateAccenture · Tech Mahindra pattern

In a sequence diagram, a long thin rectangle drawn on top of a lifeline is called an activation bar (execution occurrence). What does its vertical extent represent?

  1. A. The time until the object is garbage collected
  2. B. The period during which that object is actively executing (has control), from when it receives a call to when it returns control to the caller
  3. C. The total memory the object consumes
  4. D. The number of attributes the object has

Correct answer: B. The period during which that object is actively executing (has control), from when it receives a call to when it returns control to the caller

The activation bar's length shows how long an object holds control/is executing in response to a message, ending when it returns (explicitly via a return message, or implicitly at the bar's bottom).

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic