UML Flashcards

1
Q

What is UML?

A

Unified Modelling Language, used for specifying, visualising, constructing, and documenting software systems, as well as business and non-software systems.

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

What are UML architectural views?

A

Logical, physical, development, and process views for visualising different aspects of a system.

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

What are the different levels of detail in UML?

A

Concept level (highly abstracted) and design level (detailed, code-like).

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

What is the rule for elements in a UML diagram?

A

7±2 elements per diagram for optimal clarity without excessive complexity.

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

What are the types of inheritance in UML?

A

Weak inheritance (white triangle) and strong inheritance (black triangle).

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

How many diagrams does UML 2.x include?

A

Nine diagrams, including four new ones and some syntax changes.

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

What is a UML use case diagram?

A

A diagram showing system functions provided to classes of users and their interactions.

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

How does UML show system interfaces?

A

Using stereotypes with chevrons («System») and arrows for one-way communication.

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

What is a UML class diagram?

A

The core diagram of UML, showing logical structure and connections between system components.

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

What is a UML object diagram?

A

A class diagram for a single instance, with instance names underlined and annotated.

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

What is a UML collaboration (communication) diagram?

A

Object diagrams with message arrows showing sequences and relationships between collaborating objects.

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

What is a UML sequence diagram?

A

Shows the sequence of interactions over time, using activation bars and vertical arrangements.

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

What are UML transition diagrams?

A

Activity or state diagrams showing the flow of activities or tasks, with decision points and synchronisation bars.

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

What are UML activity diagrams?

A

State diagrams with synchronisation bars, illustrating parallel and sequential tasks.

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

What is a UML component diagram?

A

Shows physical software structure, components, interfaces, and dependencies between them.

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

What is a UML deployment diagram?

A

Illustrates the physical architecture of hardware and software communication in a system.

17
Q

What is a UML implementation diagram?

A

Shows where and how components will be implemented and their interdependencies across nodes.

18
Q

What are UML extensions?

A

Stereotypes, symbols, and customisations using chevrons, colours, or pictures, making UML extensible.

19
Q

How does UML represent component dependencies?

A

With a dashed line and arrowhead (line and cup in UML 2.x).

20
Q

What is the purpose of UML interfaces?

A

Defines publicly accessible methods for components to call on other components or their internal classes.

21
Q

How are UML use case diagrams related to class diagrams?

A

Use case diagrams identify the system’s functionality, which can be used to derive the classes and their responsibilities in class diagrams.

22
Q

How are class diagrams related to object diagrams?

A

Class diagrams show the blueprint of the system’s structure, while object diagrams represent specific instances of those classes at a given time.

23
Q

How are sequence diagrams related to collaboration diagrams?

A

Both show object interactions; sequence diagrams focus on the time-ordered sequence of messages, while collaboration diagrams emphasise relationships between objects.

24
Q

How are activity diagrams related to state diagrams?

A

Activity diagrams model workflows or task sequences, while state diagrams focus on an object’s state transitions. Both use similar notation for events and decisions.

25
How are component diagrams related to deployment diagrams?
Component diagrams show software components and their relationships, while deployment diagrams map these components onto physical hardware nodes.
26
How are use case diagrams related to sequence diagrams?
Use case diagrams describe system functionality, and sequence diagrams provide detailed interactions for implementing specific use cases.
27
How are state diagrams related to sequence diagrams?
State diagrams describe the life cycle of an object, while sequence diagrams detail how objects interact within those states.
28
How are activity diagrams related to use case diagrams?
Activity diagrams elaborate the flow of actions within a use case, showing decision points and parallel activities.
29
How are logical and physical views connected in UML?
Logical diagrams (e.g., class diagrams) define the software's abstract structure, while physical diagrams (e.g., deployment diagrams) map this structure onto actual hardware.
30
How are component diagrams related to class diagrams?
Component diagrams encapsulate sets of related classes, showing their dependencies and interfaces.