1/104
Looks like no tags are added yet.
Foundations: What does UML stand for?
Unified Modeling Language.
Foundations: What is UML?
A shared visual vocabulary/standard notation for describing and communicating software design.
Foundations: Why is UML used?
To make design visible, standardize communication, capture design decisions, and help evaluate designs.
Foundations: What is a model in UML?
The complete picture of a system.
Foundations: What is a view in UML?
A particular perspective of the system, such as structure, behavior, user, or physical.
Foundations: What is a diagram in UML?
A visual representation of one view of a system.
Foundations: What question do structural diagrams answer?
What exists in the system? They show things and how they are organized.
Foundations: What question do behavioral diagrams answer?
What happens in the system? They show actions, processes, interactions, and changes over time.
Foundations: Which UML diagrams are structural?
Class, Component, and Deployment.
Foundations: Which UML diagrams are behavioral?
Use Case, Activity, Sequence, and State.
Class Diagrams: What does a Class Diagram show?
Classes, attributes, methods, and relationships; the static structure of a system.
Component & Deployment: What does a Component Diagram show?
Major software modules/components, their interfaces, and dependencies/connections.
Component & Deployment: What does a Deployment Diagram show?
Where software runs: physical/virtual nodes, deployed artifacts, and network connections.
Use Case & Activity: What does a Use Case Diagram show?
Who uses a system and what goals/capabilities they can accomplish.
Use Case & Activity: What does an Activity Diagram show?
The step-by-step flow of a process, including decisions, loops, and parallel work.
Sequence & State: What does a Sequence Diagram show?
How participants exchange messages over time and in what order.
Sequence & State: What does a State Diagram show?
How one object changes state/condition over time and what triggers those changes.
Foundations: What does purpose-driven UML mean?
Each diagram should answer a specific design question.
Foundations: What does audience-aware UML mean?
The diagram should be understandable and appropriate for the people reading it.
Foundations: What does appropriate detail mean in UML?
Include important design decisions and exclude unnecessary implementation details.
Foundations: What is diagram soup?
Trying to show everything in one diagram instead of focusing on a clear purpose.
Class Diagrams: What are the three compartments of a class box?
Class name; attributes; methods/operations.
Class Diagrams: What are attributes?
Stored data or fields; what a class HAS; usually nouns.
Class Diagrams: What are methods?
Operations/functions; what a class DOES; usually verbs.
Class Diagrams: What does + mean in class visibility?
Public.
Class Diagrams: What does - mean in class visibility?
Private.
Class Diagrams: What does # mean in class visibility?
Protected.
Class Diagrams: What does ~ mean in class visibility?
Package/default visibility.
Class Diagrams: What is the class diagram visibility rule of thumb?
Keep data private; make useful methods public.
Class Diagrams: What is association?
A plain-line relationship between independent objects that are connected but can exist separately.
Class Diagrams: What is aggregation?
A weak/loose has-a relationship; parts can survive if the whole is deleted.
Class Diagrams: What symbol represents aggregation?
A hollow/empty diamond at the whole/owner end.
Class Diagrams: What is composition?
A strong ownership relationship; parts do not meaningfully exist without the whole.
Class Diagrams: What symbol represents composition?
A filled diamond at the whole/owner end.
Class Diagrams: What is inheritance/generalization?
An is-a relationship where a child class is a type of a parent class.
Class Diagrams: Which way does the inheritance triangle point?
Toward the general parent/superclass; the line comes from the specific child.
Class Diagrams: What is realization?
A class implements an interface and promises to provide its required methods.
Class Diagrams: What symbol represents realization?
A dashed line with a hollow triangle pointing to the interface.
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.
Class Diagrams: How do you identify association with the destruction test?
B remains independently; the objects are connected but neither owns the other.
Class Diagrams: How do you identify aggregation with the destruction test?
B survives deletion of A but loses its connection to A.
Class Diagrams: How do you identify composition with the destruction test?
B is deleted or becomes meaningless when A is deleted.
Class Diagrams: What does multiplicity describe?
How many instances of one class can participate in a relationship.
Class Diagrams: What does multiplicity 1 mean?
Exactly one.
Class Diagrams: What does multiplicity 0..* mean?
Zero or many.
Class Diagrams: What does multiplicity 1..* mean?
One or many; at least one.
Mixed — Diagram Recognition: What is a class?
A blueprint/template describing what something is and what it can do.
Mixed — Diagram Recognition: What is an interface?
A contract defining what operations/services must be provided.
Component & Deployment: What is a component?
A modular piece of software functionality with a clear job and boundary.
Component & Deployment: What is a node?
A physical or virtual machine where software runs.
Class Diagrams: What is an active class?
A class with its own control thread.
Class Diagrams: What is a collaboration?
A group of elements working together.
Component & Deployment: What does a Component Diagram focus on?
Logical software architecture: what modules exist, how they connect, and what interfaces they provide.
Component & Deployment: What does a Deployment Diagram focus on?
Physical/virtual architecture: where software is deployed and how machines communicate.
Component & Deployment: What is a good software component like?
Self-contained, replaceable, connectable, reusable, encapsulated, and interface-based.
Component & Deployment: What does encapsulation mean for a component?
It hides internal implementation details behind defined interfaces.
Component & Deployment: What does an interface specify?
What service is provided, not how it is implemented.
Component & Deployment: What are the three main Deployment Diagram elements?
Nodes, artifacts, and connections.
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.
Component & Deployment: What is an artifact in a Deployment Diagram?
An actual software file/piece deployed on a node.
Component & Deployment: What do connections show in a Deployment Diagram?
Network links and communication between nodes; they may identify protocols such as HTTPS.
Component & Deployment: When should you choose a Component Diagram?
When describing software modules, replacing a software feature, interfaces, or dependencies.
Component & Deployment: When should you choose a Deployment Diagram?
When planning servers/hardware, where software runs, network connections, scalability, or physical bottlenecks.
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.
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.
Use Case & Activity: Where are actors placed in a Use Case Diagram?
Outside the system boundary.
Use Case & Activity: How are use cases represented?
Ovals inside the system boundary.
Use Case & Activity: What does the system boundary show?
What is part of the system and what is outside it; usually a rectangle.
Use Case & Activity: Are actors specific people or roles?
Roles, not specific named individuals.
Use Case & Activity: Can more than one actor participate in one use case?
Yes.
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.
Use Case & Activity: What does include mean in a Use Case Diagram?
Required included behavior; memory trick: IN every time.
Use Case & Activity: What does extend mean in a Use Case Diagram?
Optional or conditional extra behavior; memory trick: EXtra sometimes.
Use Case & Activity: What does an Activity Diagram focus on?
What happens in what order; the process flow.
Use Case & Activity: What is the Activity Diagram start symbol?
A filled circle.
Use Case & Activity: How is an action represented in an Activity Diagram?
A rounded rectangle.
Use Case & Activity: What does a diamond represent in an Activity Diagram?
A decision/branch where the flow can take different paths.
Use Case & Activity: What do arrows represent in an Activity Diagram?
The direction and order of flow.
Use Case & Activity: What does a thick bar represent in an Activity Diagram?
A fork or join for parallel activities.
Use Case & Activity: What is a loop in an Activity Diagram?
A path that repeats an action or group of actions.
Sequence & State: What is a Sequence Diagram participant?
An object or entity that sends or receives messages in the interaction.
Sequence & State: Where are Sequence Diagram participants shown?
In labeled boxes across the top, with vertical dashed lifelines extending downward.
Sequence & State: What is a lifeline?
A vertical dashed line representing a participant's existence over time.
Sequence & State: Which direction does time move in a Sequence Diagram?
From top to bottom.
Sequence & State: What does a solid message arrow mean in the lecture's Sequence notation?
Synchronous message: the sender waits for a response.
Sequence & State: What does a dashed arrow mean in the lecture's Sequence notation?
A return/response message.
Sequence & State: What is a self-message?
A participant sends a message to itself, often shown as a loop arrow.
Sequence & State: What is asynchronous work?
Work that can proceed independently without holding up the main flow, such as sending a confirmation email.
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.
Sequence & State: What does a State Diagram focus on?
The lifecycle and condition changes of one object over time.
Sequence & State: What is a state?
A condition or mode an object is in at a particular time.
Sequence & State: What is a transition?
A change from one state to another, represented by an arrow.
Sequence & State: What is an event/trigger in a State Diagram?
The event that causes a transition between states.
Sequence & State: What is an initial state?
The starting state of the object's lifecycle.
Sequence & State: What is Entry behavior?
An action performed once when entering a state.
Sequence & State: What is Do behavior?
Ongoing behavior performed while the object remains in a state.
Sequence & State: What is Exit behavior?
An action performed once when leaving a state.
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.
Mixed — Diagram Recognition: Which diagram is best for debugging communication between microservices?
Sequence Diagram.
Mixed — Diagram Recognition: Which diagram is best for modeling a traffic light's red/yellow/green modes?
State Diagram.