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?
- A. The time until the object is garbage collected
- 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
- C. The total memory the object consumes
- 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).
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 Employee with attribute - salary: double and operation + getSalary(): double. What do the leading - and + symbols…
- A sequence diagram shows a loop combined fragment labelled loop [for each item in cart] wrapping a single message validateItem(item) sent…
- A class diagram shows Vehicle as a superclass with a generalization (hollow triangle arrow) pointing from Car and Truck up to Vehicle. If…
- Using basic COCOMO for a semi-detached project (E = 3 × KLOC^1.12 person-months), what is the estimated effort for a 45 KLOC project?
- A control flow graph has 28 edges and 20 nodes. What is its cyclomatic complexity?
- A control flow graph has 30 edges and 21 nodes, forming 2 disconnected components. What is its cyclomatic complexity?