An activity diagram is a visual representation that shows the flow of actions or activities in a system or process, similar to a flowchart but focused on workflows.
Click to reveal answer
beginner
What symbol represents the start of an activity diagram?
A filled black circle represents the start (initial node) of an activity diagram.
Click to reveal answer
intermediate
How do activity diagrams show decision points?
Decision points are shown as diamonds where the flow splits based on conditions, like choosing a path at a fork in a road.
Click to reveal answer
intermediate
What is the purpose of swimlanes in activity diagrams?
Swimlanes divide the diagram into sections to show which actor or part of the system is responsible for each activity, like lanes in a swimming pool.
Click to reveal answer
advanced
How does an activity diagram represent parallel activities?
Parallel activities are shown using a fork node (a thick horizontal or vertical bar) that splits the flow into multiple concurrent paths.
Click to reveal answer
Which symbol marks the end of an activity diagram?
AA rectangle
BA diamond
CA filled black circle
DA filled black circle with a border
✗ Incorrect
The end of an activity diagram is shown by a filled black circle inside a larger circle, called the final node.
What does a diamond symbol represent in an activity diagram?
AStart of the process
BDecision point
CParallel fork
DActivity step
✗ Incorrect
Diamonds represent decision points where the flow branches based on conditions.
What is the main use of swimlanes in activity diagrams?
ATo show parallel activities
BTo indicate start and end
CTo assign activities to actors or departments
DTo represent decisions
✗ Incorrect
Swimlanes organize activities by who or what performs them.
How are concurrent activities shown in an activity diagram?
AUsing fork and join nodes
BUsing diamonds
CUsing swimlanes
DUsing arrows only
✗ Incorrect
Fork nodes split flow into parallel paths; join nodes merge them back.
Which of the following is NOT typically shown in an activity diagram?
ADetailed class structure
BActors responsible for activities
CFlow of activities
DDecision points
✗ Incorrect
Class structure is shown in class diagrams, not activity diagrams.
Explain the main components of an activity diagram and their roles.
Think about how a process flows and who does what.
You got /6 concepts.
Describe how activity diagrams help in understanding system workflows.
Imagine explaining a recipe or a daily routine step-by-step.
You got /5 concepts.
Practice
(1/5)
1. What is the main purpose of an activity diagram in system design?
easy
A. To visually show the flow of tasks and decisions in a process
B. To list all database tables and their relationships
C. To define the hardware requirements for a system
D. To write the detailed code for each function
Solution
Step 1: Understand activity diagram purpose
Activity diagrams are used to show how tasks flow and decisions are made in a process.
Step 2: Compare with other options
Options B, C, and D describe database design, hardware planning, and coding, which are not the role of activity diagrams.
Final Answer:
To visually show the flow of tasks and decisions in a process -> Option A
Quick Check:
Activity diagram = task flow visualization [OK]
Hint: Activity diagrams map task flows, not data or code [OK]
Common Mistakes:
Confusing activity diagrams with database diagrams
Thinking activity diagrams show code details
Mixing hardware design with activity flow
2. Which of the following is the correct symbol for a decision point in an activity diagram?
easy
A. A rectangle with rounded corners
B. A circle with a thick border
C. A diamond shape
D. A parallelogram
Solution
Step 1: Recall activity diagram symbols
Decision points in activity diagrams are shown as diamond shapes to represent branching.
Step 2: Identify other symbols
Rectangles with rounded corners are actions, circles with thick borders are start/end nodes, and parallelograms are not standard in activity diagrams.
Final Answer:
A diamond shape -> Option C
Quick Check:
Decision symbol = diamond [OK]
Hint: Decision points always use diamond shapes [OK]
Common Mistakes:
Confusing decision diamonds with action rectangles
Using circles for decisions
Mixing input/output symbols with decisions
3. Consider this activity diagram snippet:
Start -> Action A -> Decision (Yes/No) Yes -> Action B -> End No -> Action C -> End
What is the correct flow if the decision is 'No'?
medium
A. Start -> Action A -> Action B -> End
B. Start -> Action A -> End
C. Start -> Action A -> Decision -> Action B -> Action C -> End
D. Start -> Action A -> Action C -> End
Solution
Step 1: Trace the flow for 'No' decision
From the decision node, if the answer is 'No', the flow goes to Action C, then to End.
Step 2: Verify other options
Start -> Action A -> Action B -> End follows 'Yes' path, Start -> Action A -> Decision -> Action B -> Action C -> End incorrectly chains both actions, Start -> Action A -> End skips actions after decision.
Final Answer:
Start -> Action A -> Action C -> End -> Option D
Quick Check:
'No' decision leads to Action C [OK]
Hint: Follow arrows from decision to correct action [OK]
Common Mistakes:
Mixing 'Yes' and 'No' paths
Skipping actions after decision
Assuming both paths run together
4. In an activity diagram, a developer mistakenly connects two actions with a double arrow instead of a single arrow. What is the likely issue?
medium
A. There is no difference; arrows can be single or double
B. The flow will be interpreted as parallel execution, causing confusion
C. The double arrow means the process loops infinitely
D. The diagram will show a syntax error and not render
Solution
Step 1: Understand arrow meaning in activity diagrams
Single arrows show normal flow; double arrows often indicate parallel or concurrent flows.
Step 2: Analyze impact of double arrow misuse
Using double arrows between two actions may confuse readers into thinking tasks run in parallel, which is incorrect if not intended.
Final Answer:
The flow will be interpreted as parallel execution, causing confusion -> Option B
5. You need to design an activity diagram for a user login process that includes entering credentials, validating them, and either granting access or showing an error. Which sequence correctly represents this flow?
hard
A. Start -> Enter Credentials -> Validate -> Decision (Valid?) -> Access Granted / Show Error -> End
B. Start -> Validate -> Enter Credentials -> Decision (Valid?) -> Access Granted / Show Error -> End
C. Start -> Enter Credentials -> Decision (Valid?) -> Validate -> Access Granted / Show Error -> End
D. Start -> Enter Credentials -> Access Granted -> Validate -> Show Error -> End
Solution
Step 1: Identify correct logical order
User must first enter credentials, then system validates them before deciding validity.
Step 2: Check each option's sequence
Start -> Enter Credentials -> Validate -> Decision (Valid?) -> Access Granted / Show Error -> End follows logical order: enter -> validate -> decision -> outcome. Others have steps out of order.
Final Answer:
Start -> Enter Credentials -> Validate -> Decision (Valid?) -> Access Granted / Show Error -> End -> Option A