Sequence Diagram Flashcards

(26 cards)

1
Q

What type of UML diagram is a Sequence Diagram?

A

It is a behavioral UML diagram

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a Sequence Diagram primarily show?

A

How objects interact and the order of messages exchanged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What dimension does the vertical axis represent?

A

Time (progressing down the page)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What dimension does the horizontal axis represent?

A

The objects involved in the interaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the other term for User?

A

Actor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does other layer called? ( Interface, Application, Database )

A

Object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How is an Actor (e.g., User) represented?

A

By a stick figure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is an Object represented?

A

By a rectangle (box) with a name inside

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What three key questions does a Sequence Diagram answer?

A
  1. Who talks to whom?
  2. In what order?
  3. What messages?
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does a Sequence Diagram focus on structure or process?

A

It focuses on the process flow over time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a ‘Lifeline’?

A

A vertical dashed line showing an object’s existence over time.

User        ATM Machine (Interface)
   |                           |
	 |                           |
	 |                           |
	 |                           |
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is line for sending request to objects?

A

Solid line with arrow

\_\_\_\_\_\_\_\_\_\_\_>

Write the function from class diagram with parameter to get full marks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the line for reply of the request?

A

Dotted line with arrow
~~~
——>
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to show alternative flow

A

Draw a rectangle with the text “Alt” at top left

IF card valid  - Request Pin
IF card invalid - Eject Card
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What will the Alt rectangle become in programming?

A

If else statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How to divide the alternative flows in the rectangle?

A

A solid or dotted line

17
Q

What does the length of the status bar indicates?

A

It indicates the duration of the object’s existence over time.

Known as Status Line / Active Line (Green Bar at Slide)

A rectangle bar that is connected to the lifeline

18
Q

What does the X mean at the ATM machine lifeline below?

A

The ATM machine shut down

19
Q

In the ATM example, what is the first action?

A

insertCard(card_number)

20
Q

In the ATM example, which component validates the card?

A

The Bank Server (Application)

21
Q

In the ATM example, what happens if the card is invalid?

A

The machine performs Eject_card(card)

22
Q

In the ATM example, which layer does the ATM Machine belong to?

A

The Interface (UI) Layer.

23
Q

In the ATM example, which layer does the Database Server belong to?

A

The Data Layer.

24
Q

What parameter is passed with the ‘requestPIN’ message?

A

The ‘pin’

25
Which function keyword often leads to a dotted line (Reply for the request)
1. Reply 2. Result (cardValidationResult)
26
What is the return message after 'validateCard'?
cardValidationResult (Valid or Invalid)