Final Material - System Modelling Using UML Diagrams Flashcards

1
Q

What is the difference between structural and behavioural UML diagrams?

A

Structural diagrams present a static view of the system using objects, attributes, operations, and relationships
Behavioural diagrams present a dynamic view of the system showing collaborations among objects and changes to the internal state of objects

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

What is the purpose of a class diagram?

A

To show the classes in a system and the relationship between the classes

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

What is an association relationship in UML class diagrams?

A

Shows a has-a relationship between classes. It is represented by a line sometimes with an arrow and a name for the relationship which is usually a verb

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

What is an aggregation relationship in UML class diagrams?

A

A part-whole relationship, subset of association. The part may exist independent of the whole and can belong to more than one whole. It is represented with a hollow diamond at the “whole” end

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

What is a composition relationship in UML class diagrams?

A

A part-whole relationship, subset of association. Stronger version of aggregation. A part can not exist independent of the whole and can only belong to one whole. It is represented by a filled diamond at the “whole” end

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

What is multiplicity in UML class diagrams?

A

Defines the number of times a class is associated with another class

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

What is a generalization relationship in UML class diagrams?

A

Represents a parent-child relationship. Allows us to group characteristics into general classes and then make more specified forms. Represented by and open triangle pointing to the generalized class

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

What is the purpose of a sequence diagram?

A

Used to model interactions between actors and objects within a system

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

What is an activation box in a sequence diagram?

A

They indicate when an object is active or inactive

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

What is an alternative frame in a sequence diagram?

A

Provide a choice between two alternative sequences of actions (like else-if block)

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

What is a lifeline in a sequence diagram?

A

The path the program takes between each actor and the objects

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