UML EXAM 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/104

encourage image

There are no tags or description

Looks like no tags are added yet.

105 Terms

1
New cards

Foundations: What does UML stand for?

Unified Modeling Language.

2
New cards

Foundations: What is UML?

A shared visual vocabulary/standard notation for describing and communicating software design.

3
New cards

Foundations: Why is UML used?

To make design visible, standardize communication, capture design decisions, and help evaluate designs.

4
New cards

Foundations: What is a model in UML?

The complete picture of a system.

5
New cards

Foundations: What is a view in UML?

A particular perspective of the system, such as structure, behavior, user, or physical.

6
New cards

Foundations: What is a diagram in UML?

A visual representation of one view of a system.

7
New cards

Foundations: What question do structural diagrams answer?

What exists in the system? They show things and how they are organized.

8
New cards

Foundations: What question do behavioral diagrams answer?

What happens in the system? They show actions, processes, interactions, and changes over time.

9
New cards

Foundations: Which UML diagrams are structural?

Class, Component, and Deployment.

10
New cards

Foundations: Which UML diagrams are behavioral?

Use Case, Activity, Sequence, and State.

11
New cards

Class Diagrams: What does a Class Diagram show?

Classes, attributes, methods, and relationships; the static structure of a system.

12
New cards

Component & Deployment: What does a Component Diagram show?

Major software modules/components, their interfaces, and dependencies/connections.

13
New cards

Component & Deployment: What does a Deployment Diagram show?

Where software runs: physical/virtual nodes, deployed artifacts, and network connections.

14
New cards

Use Case & Activity: What does a Use Case Diagram show?

Who uses a system and what goals/capabilities they can accomplish.

15
New cards

Use Case & Activity: What does an Activity Diagram show?

The step-by-step flow of a process, including decisions, loops, and parallel work.

16
New cards

Sequence & State: What does a Sequence Diagram show?

How participants exchange messages over time and in what order.

17
New cards

Sequence & State: What does a State Diagram show?

How one object changes state/condition over time and what triggers those changes.

18
New cards

Foundations: What does purpose-driven UML mean?

Each diagram should answer a specific design question.

19
New cards

Foundations: What does audience-aware UML mean?

The diagram should be understandable and appropriate for the people reading it.

20
New cards

Foundations: What does appropriate detail mean in UML?

Include important design decisions and exclude unnecessary implementation details.

21
New cards

Foundations: What is diagram soup?

Trying to show everything in one diagram instead of focusing on a clear purpose.

22
New cards

Class Diagrams: What are the three compartments of a class box?

Class name; attributes; methods/operations.

23
New cards

Class Diagrams: What are attributes?

Stored data or fields; what a class HAS; usually nouns.

24
New cards

Class Diagrams: What are methods?

Operations/functions; what a class DOES; usually verbs.

25
New cards

Class Diagrams: What does + mean in class visibility?

Public.

26
New cards

Class Diagrams: What does - mean in class visibility?

Private.

27
New cards

Class Diagrams: What does # mean in class visibility?

Protected.

28
New cards

Class Diagrams: What does ~ mean in class visibility?

Package/default visibility.

29
New cards

Class Diagrams: What is the class diagram visibility rule of thumb?

Keep data private; make useful methods public.

30
New cards

Class Diagrams: What is association?

A plain-line relationship between independent objects that are connected but can exist separately.

31
New cards

Class Diagrams: What is aggregation?

A weak/loose has-a relationship; parts can survive if the whole is deleted.

32
New cards

Class Diagrams: What symbol represents aggregation?

A hollow/empty diamond at the whole/owner end.

33
New cards

Class Diagrams: What is composition?

A strong ownership relationship; parts do not meaningfully exist without the whole.

34
New cards

Class Diagrams: What symbol represents composition?

A filled diamond at the whole/owner end.

35
New cards

Class Diagrams: What is inheritance/generalization?

An is-a relationship where a child class is a type of a parent class.

36
New cards

Class Diagrams: Which way does the inheritance triangle point?

Toward the general parent/superclass; the line comes from the specific child.

37
New cards

Class Diagrams: What is realization?

A class implements an interface and promises to provide its required methods.

38
New cards

Class Diagrams: What symbol represents realization?

A dashed line with a hollow triangle pointing to the interface.

39
New cards

Class Diagrams: What is the destruction test?

Ask: if I delete A, what happens to B? Use the answer to distinguish association, aggregation, and composition.

40
New cards

Class Diagrams: How do you identify association with the destruction test?

B remains independently; the objects are connected but neither owns the other.

41
New cards

Class Diagrams: How do you identify aggregation with the destruction test?

B survives deletion of A but loses its connection to A.

42
New cards

Class Diagrams: How do you identify composition with the destruction test?

B is deleted or becomes meaningless when A is deleted.

43
New cards

Class Diagrams: What does multiplicity describe?

How many instances of one class can participate in a relationship.

44
New cards

Class Diagrams: What does multiplicity 1 mean?

Exactly one.

45
New cards

Class Diagrams: What does multiplicity 0..* mean?

Zero or many.

46
New cards

Class Diagrams: What does multiplicity 1..* mean?

One or many; at least one.

47
New cards

Mixed — Diagram Recognition: What is a class?

A blueprint/template describing what something is and what it can do.

48
New cards

Mixed — Diagram Recognition: What is an interface?

A contract defining what operations/services must be provided.

49
New cards

Component & Deployment: What is a component?

A modular piece of software functionality with a clear job and boundary.

50
New cards

Component & Deployment: What is a node?

A physical or virtual machine where software runs.

51
New cards

Class Diagrams: What is an active class?

A class with its own control thread.

52
New cards

Class Diagrams: What is a collaboration?

A group of elements working together.

53
New cards

Component & Deployment: What does a Component Diagram focus on?

Logical software architecture: what modules exist, how they connect, and what interfaces they provide.

54
New cards

Component & Deployment: What does a Deployment Diagram focus on?

Physical/virtual architecture: where software is deployed and how machines communicate.

55
New cards

Component & Deployment: What is a good software component like?

Self-contained, replaceable, connectable, reusable, encapsulated, and interface-based.

56
New cards

Component & Deployment: What does encapsulation mean for a component?

It hides internal implementation details behind defined interfaces.

57
New cards

Component & Deployment: What does an interface specify?

What service is provided, not how it is implemented.

58
New cards

Component & Deployment: What are the three main Deployment Diagram elements?

Nodes, artifacts, and connections.

59
New cards

Component & Deployment: What is a node in a Deployment Diagram?

A physical or virtual machine, such as a web server, database server, or cloud server.

60
New cards

Component & Deployment: What is an artifact in a Deployment Diagram?

An actual software file/piece deployed on a node.

61
New cards

Component & Deployment: What do connections show in a Deployment Diagram?

Network links and communication between nodes; they may identify protocols such as HTTPS.

62
New cards

Component & Deployment: When should you choose a Component Diagram?

When describing software modules, replacing a software feature, interfaces, or dependencies.

63
New cards

Component & Deployment: When should you choose a Deployment Diagram?

When planning servers/hardware, where software runs, network connections, scalability, or physical bottlenecks.

64
New cards

Use Case & Activity: What does a Use Case Diagram focus on?

WHO uses the system and WHAT they can do; user goals and system capabilities.

65
New cards

Use Case & Activity: What is an actor in a Use Case Diagram?

A role played by a person or external system that interacts with the system.

66
New cards

Use Case & Activity: Where are actors placed in a Use Case Diagram?

Outside the system boundary.

67
New cards

Use Case & Activity: How are use cases represented?

Ovals inside the system boundary.

68
New cards

Use Case & Activity: What does the system boundary show?

What is part of the system and what is outside it; usually a rectangle.

69
New cards

Use Case & Activity: Are actors specific people or roles?

Roles, not specific named individuals.

70
New cards

Use Case & Activity: Can more than one actor participate in one use case?

Yes.

71
New cards

Use Case & Activity: What is the difference between a use case and an activity?

A use case shows the user's goal/what they can do; an activity diagram shows the process/how to achieve it.

72
New cards

Use Case & Activity: What does include mean in a Use Case Diagram?

Required included behavior; memory trick: IN every time.

73
New cards

Use Case & Activity: What does extend mean in a Use Case Diagram?

Optional or conditional extra behavior; memory trick: EXtra sometimes.

74
New cards

Use Case & Activity: What does an Activity Diagram focus on?

What happens in what order; the process flow.

75
New cards

Use Case & Activity: What is the Activity Diagram start symbol?

A filled circle.

76
New cards

Use Case & Activity: How is an action represented in an Activity Diagram?

A rounded rectangle.

77
New cards

Use Case & Activity: What does a diamond represent in an Activity Diagram?

A decision/branch where the flow can take different paths.

78
New cards

Use Case & Activity: What do arrows represent in an Activity Diagram?

The direction and order of flow.

79
New cards

Use Case & Activity: What does a thick bar represent in an Activity Diagram?

A fork or join for parallel activities.

80
New cards

Use Case & Activity: What is a loop in an Activity Diagram?

A path that repeats an action or group of actions.

81
New cards

Sequence & State: What is a Sequence Diagram participant?

An object or entity that sends or receives messages in the interaction.

82
New cards

Sequence & State: Where are Sequence Diagram participants shown?

In labeled boxes across the top, with vertical dashed lifelines extending downward.

83
New cards

Sequence & State: What is a lifeline?

A vertical dashed line representing a participant's existence over time.

84
New cards

Sequence & State: Which direction does time move in a Sequence Diagram?

From top to bottom.

85
New cards

Sequence & State: What does a solid message arrow mean in the lecture's Sequence notation?

Synchronous message: the sender waits for a response.

86
New cards

Sequence & State: What does a dashed arrow mean in the lecture's Sequence notation?

A return/response message.

87
New cards

Sequence & State: What is a self-message?

A participant sends a message to itself, often shown as a loop arrow.

88
New cards

Sequence & State: What is asynchronous work?

Work that can proceed independently without holding up the main flow, such as sending a confirmation email.

89
New cards

Use Case & Activity: How is an Activity Diagram different from a Sequence Diagram?

Activity shows process actions in order; Sequence shows participants exchanging messages over time.

90
New cards

Sequence & State: What does a State Diagram focus on?

The lifecycle and condition changes of one object over time.

91
New cards

Sequence & State: What is a state?

A condition or mode an object is in at a particular time.

92
New cards

Sequence & State: What is a transition?

A change from one state to another, represented by an arrow.

93
New cards

Sequence & State: What is an event/trigger in a State Diagram?

The event that causes a transition between states.

94
New cards

Sequence & State: What is an initial state?

The starting state of the object's lifecycle.

95
New cards

Sequence & State: What is Entry behavior?

An action performed once when entering a state.

96
New cards

Sequence & State: What is Do behavior?

Ongoing behavior performed while the object remains in a state.

97
New cards

Sequence & State: What is Exit behavior?

An action performed once when leaving a state.

98
New cards

Sequence & State: How is a Sequence Diagram different from a State Diagram?

Sequence shows communication among participants; State shows one object's condition/lifecycle changes.

99
New cards

Mixed — Diagram Recognition: Which diagram is best for debugging communication between microservices?

Sequence Diagram.

100
New cards

Mixed — Diagram Recognition: Which diagram is best for modeling a traffic light's red/yellow/green modes?

State Diagram.