An activity diagram is a visual representation that shows the flow of activities or actions in a system or process. It helps to understand how tasks are performed step-by-step.
Click to reveal answer
beginner
Which symbol represents the start of an activity in an activity diagram?
A filled black circle (●) represents the start (initial node) of an activity in an activity diagram.
Click to reveal answer
beginner
What does a diamond shape represent in an activity diagram?
A diamond shape represents a decision point where the flow can branch based on conditions.
Click to reveal answer
intermediate
How do activity diagrams help in software development?
They help by showing the sequence of actions, decision points, and parallel processes, making it easier to understand, communicate, and design workflows.
Click to reveal answer
intermediate
What is the difference between an activity and an action in an activity diagram?
An activity is a larger task that can contain multiple actions, while an action is a single step or operation within an activity.
Click to reveal answer
What symbol marks the end of an activity diagram?
AA filled black circle
BA rectangle
CA diamond shape
DA circle with a border and a smaller filled circle inside
✗ Incorrect
The end of an activity diagram is shown by a circle with a border and a smaller filled circle inside, called the final node.
Which element shows parallel activities happening at the same time?
AInitial node (filled circle)
BDecision node (diamond)
CFork node (thick horizontal or vertical bar)
DMerge node (diamond)
✗ Incorrect
A fork node splits the flow into multiple parallel paths, showing activities happening simultaneously.
What does a transition arrow represent in an activity diagram?
AThe flow from one activity or action to another
BA decision point
CThe start of the process
DAn object or data
✗ Incorrect
Transition arrows show the flow or movement from one activity or action to the next.
In activity diagrams, what is the purpose of a merge node?
ATo combine multiple flows into one
BTo split one flow into multiple flows
CTo start the activity
DTo end the activity
✗ Incorrect
A merge node combines multiple alternative flows back into a single flow.
Which of the following is NOT typically shown in an activity diagram?
ADecision points
BClass attributes
CSequence of actions
DParallel processes
✗ Incorrect
Class attributes belong to class diagrams, not activity diagrams.
Explain the main components of an activity diagram and their roles.
Think about how the diagram shows start, steps, choices, parallel tasks, and end.
You got /6 concepts.
Describe how activity diagrams can be used to improve understanding of a software process.
Consider how seeing the steps visually helps everyone involved.
You got /5 concepts.
Practice
(1/5)
1. What is the main purpose of an Activity diagram in software engineering?
easy
A. To store data in tables
B. To write detailed code for software modules
C. To visually represent the flow of activities in a process
D. To design the user interface layout
Solution
Step 1: Understand the role of activity diagrams
Activity diagrams show the sequence and flow of activities in a process visually.
Step 2: Compare with other options
Writing code, storing data, and designing UI are not purposes of activity diagrams.
Final Answer:
To visually represent the flow of activities in a process -> Option C
Quick Check:
Activity diagram = Visual flow map [OK]
Hint: Activity diagrams map steps visually, not code or data [OK]
Common Mistakes:
Confusing activity diagrams with code writing
Thinking activity diagrams store data
Mixing activity diagrams with UI design
2. Which symbol in an activity diagram represents a decision point where the flow can branch?
easy
A. Arrow
B. Oval (Start/End)
C. Rectangle (Action)
D. Diamond
Solution
Step 1: Identify decision symbol in activity diagrams
The diamond shape is used to represent decision points where the flow branches based on conditions.
Step 2: Understand other symbols
Ovals mark start/end, rectangles show actions, and arrows show flow direction.
Final Answer:
Diamond -> Option D
Quick Check:
Decision = Diamond shape [OK]
Hint: Decision points use diamond shapes in diagrams [OK]
Common Mistakes:
Confusing ovals with decision points
Thinking arrows represent decisions
Mixing action rectangles with decisions
3. Consider an activity diagram with the following flow: Start -> Action A -> Decision (Yes/No) -> If Yes: Action B -> End; If No: Action C -> End. Which action(s) will execute if the decision is 'No'?
medium
A. Action A and Action C
B. Action A and Action B
C. Only Action C
D. Only Action B
Solution
Step 1: Trace the flow for decision 'No'
The flow starts at Start, then Action A executes. At the decision, if 'No', it goes to Action C.
Step 2: Identify all executed actions
Since Action A happens before the decision, and Action C after the 'No' branch, both execute.
Final Answer:
Action A and Action C -> Option A
Quick Check:
Decision 'No' path = Action A + Action C [OK]
Hint: Trace flow step-by-step from start to decision branch [OK]
Common Mistakes:
Ignoring actions before the decision
Choosing only the action after decision
Confusing 'Yes' and 'No' branches
4. An activity diagram shows two actions connected directly by an arrow, but the arrow points backward creating a loop. What is the likely error in this diagram?
medium
A. Incorrect flow direction causing an unintended loop
B. Missing start node
C. Decision symbol used instead of action
D. No end node present
Solution
Step 1: Analyze the arrow direction between actions
An arrow pointing backward between two actions usually means the flow loops back, which may be unintended.
Step 2: Identify the error type
This backward arrow likely causes an incorrect loop, which is a flow direction error.
Final Answer:
Incorrect flow direction causing an unintended loop -> Option A
Quick Check:
Backward arrow = unintended loop error [OK]
Hint: Check arrow directions; backward arrows may cause loops [OK]
Common Mistakes:
Assuming missing start node causes loop
Confusing decision symbols with flow errors
Ignoring arrow directions
5. You need to model a process where multiple actions happen at the same time and then join back before continuing. Which activity diagram element should you use to represent this parallel flow?
hard
A. Action and Object nodes
B. Fork and Join nodes
C. Start and End nodes
D. Decision and Merge nodes
Solution
Step 1: Understand parallel flow in activity diagrams
Parallel actions require splitting the flow into multiple paths and then joining them back.
Step 2: Identify correct symbols for parallelism
Fork nodes split flow into parallel paths; Join nodes merge them back into one flow.
Final Answer:
Fork and Join nodes -> Option B
Quick Check:
Parallel flow = Fork and Join nodes [OK]
Hint: Use fork to split and join to merge parallel flows [OK]
Common Mistakes:
Using decision nodes for parallelism
Confusing start/end with parallel control
Mixing action nodes with flow control
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.