Lecture 3 - UML Diagrams Flashcards

(68 cards)

1
Q

What does UML stand for

A

Unified Modelling Language

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

What are the 2 types of views in UML?

A
  • Static view
  • Dynamic view
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does a dynamic view show in a UML diagram?

A

Focuses on how the system works

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

What does a static view show in a UML diagram?

A

Focuses on what the system is

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

TF: Class diagrams are a type of dynamic view

A

False. Type of static view

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

TF: Sequence diagrams are a type of dynamic view

A

True

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

What are the three categories of UML diagrams?

A
  • Structural
  • Behavioural
  • Interaction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Class, component, object are part of what category of UML diagrams?

A

Structural

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

Activity, state machine, use case are part of what category of UML diagrams?

A

Behavioural

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

Communication (collaboration), sequence, interaction overview, timing are part of what category of UML diagrams?

A

Interaction

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

Which category of UML diagram is concerned with the structure of the system?

A

Structural UML diagrams

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

Which category of UML diagram is concerned with the behavioural features of a system?

A

Behavioural UML diagrams

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

Which category of UML diagram is concerned with how objects interact with each other?

A

Interaction UML diagrams

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

What are the two components of a Use Case Diagram?

A
  • Actors
  • Use cases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What do Actors represent in Use Case Diagram?

A

Roles, type of user of the system

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

What do Use cases represent in a Use Case Diagram?

A

A sequence of interaction for a type of functionality / summary of scenarios

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

TF: Use case model is only a partial description of the functionality of the system

A

False. It is a complete description

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

Use cases are useful to… (3)

A
  • Determine requirements
  • Communicate with clients
  • Generate test cases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

TF: Class diagrams display what interacts with each other and what happens when they do interact

A

False. Just display what interacts with each other (classes and their relationships)

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

Attributes and operations of each class are found in…

A

Class diagrams

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

What is the only mandatory item in a class diagram?

A

Class name

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

A class in UML diagram is divided into three parts, which are…

A
  1. Class name
  2. Class attributes (variables)
  3. Class operations (methods)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does the ‘-‘ modifier represent in UML class notation?

A

Private

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

What does the ‘+’ modifier represent in UML class notation?

A

Public

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What does the '#' modifier represent in UML class notation?
Protected
26
How is static represented in UML class notation?
Underline
27
How is an abstract class represented in UML class notation?
By writing the name in italics
28
What is an aggregation and how is it represented in UML class notation?
Association where one class belongs to a collection (e.g. Instructor part of a Faculty). Represented by an empty diamond on side of the collection
29
What is a composition and how is it represented in UML class notation?
Strong form of aggregation where component cannot exist without aggregate. Represented by a solid diamond on side of the collection
30
What is inheritance and how is it represented in UML class notation?
A link indicating parent child relationships between two classes (car is child of vehicle). Represented by a triangle pointing to parent
31
What is Binary Association?
Association where both entities know about each other (both classes can interact with each other)
32
What is Unary Association?
Association where Class A knows about Class B, but Class B knows nothing about Class A (person knows an address, but address doesn't know anything about the person)
33
TF: Object diagram is a snapshot of objects in a system at a specific point in time
True
34
What are the three possible focuses of Object Diagrams?
1. Interactions 2. Message passing 3. Operation
35
What is the format of an object diagram?
- instance name : class name (usually underlined) - attributes and values
36
What type of diagram displays the structural relationship of components of a software system?
Component diagrams
37
TF: Components communicate with each other using interfaces
True
38
What is a package in UML diagrams?
A collection of logically related UML elements
39
How do package diagrams organize complex class diagrams?
By grouping classes together
40
What do dotted lines represent in package diagrams?
Package dependencies
41
What makes a package dependent on another?
If changes in one package can possibly force changes on another package
42
What type of diagram depicts a static view of the run-time configuration of hardware nodes and the software components that run those nodes?
Deployment diagram
43
TF: Deployment diagrams only show the hardware for your system
False. Also show the software installed on that hardware
44
Interaction diagrams describe...
how objects collaborate
45
TF: Interaction diagrams are static
False. They are dynamic
46
Is a sequence diagram static or dynamic?
Dynamic
47
What type of diagram describes a single scenario executing in the system?
Sequence diagram
48
What level of the UML class diagram is sequence diagram most useful?
Specification level
49
What are the key parts of a sequence diagram? (3)
- Participant - Message - Axes of sequence diagram
50
What is a participant in a sequence diagram?
Object or entity that acts in diagram
51
What is a message in a sequence diagram?
Communication between participant objects (method call)
52
What does the axes represent in a sequence diagram? (vertical and horizontal)
- Vertical: time (going down represents moving forward in time) - Horizontal: which object/participant is acting
53
How do you represent objects in a sequence diagram?
Squares with object type (optionally can add object name before the type in form objectName: className)
54
What do the vertical dashed lines represent in sequence diagrams?
Object's lifeline
55
How is the creation of new objects represented in sequence diagrams?
Arrow with 'new' written above it
56
How is the deletion of an object represented in sequence diagram?
X at the bottom of object's lifeline
57
TF: Sequence diagrams are language-agnostic (not specific to a programming language)
True.
58
The type of diagram used to model the dynamic behaviour and use case is called...
Communication diagram
59
TF: Communication diagram more focused on showing the collaboration of objects rather than the time sequencing
True
60
TF: Activity diagrams are the object-oriented equivalent of flow charts and data-flow diagrams
True
61
What are the 5 elements that make up an activity diagram?
- States - Swim lanes - Branch - Fork - Start and end
62
What are states in an activity diagram?
Describe what is being processed (indicated by boxes with rounded corners)
63
What are swim lanes in an activity diagram?
Indicate which object is responsible for what activity
64
What are branches in an activity diagram?
Transition that branch (indicated by a diamond)
65
What are forks in an activity diagram?
Transition of a single incoming flow into multiple concurrent flows (indicated by solid bars)
66
How is the start of an activity diagram represented?
Filled circle
67
How is the end of an activity diagram represented?
Filled circle with a ring around
68
What type of diagram shows the different states of an entity and how an entity responds to various events by changing from one state to another?
State transition diagrams