📞 0339-0387701 (WhatsApp) Contact

« Back to Software Engineering (NCCIA)

In UML, what does a lifeline represent in a sequence diagram?

A. A database connection
B. A single participant and its existence over time ✅
C. A class attribute
D. A loop in the program

Correct Answer: B. A single participant and its existence over time

Explanation

  • A lifeline shows when an object exists during an interaction
  • It is drawn as a vertical dashed line.