0
0
Software Engineeringknowledge~20 mins

Activity diagrams in Software Engineering - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Activity Diagram Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the purpose of activity diagrams

What is the main purpose of an activity diagram in software engineering?

ATo model the flow of control or data from one activity to another within a system
BTo define the structure and relationships between classes in a system
CTo represent the physical deployment of software components on hardware nodes
DTo specify the detailed user interface layout of an application
Attempts:
2 left
💡 Hint

Think about diagrams that show steps or actions and how they connect.

📋 Factual
intermediate
2:00remaining
Identifying key elements in activity diagrams

Which of the following is NOT a standard element used in UML activity diagrams?

AFork node
BDecision node
CClass node
DInitial node
Attempts:
2 left
💡 Hint

Consider elements that represent control flow versus structural elements.

🔍 Analysis
advanced
2:00remaining
Analyzing flow in an activity diagram snippet

Consider an activity diagram where an initial node leads to a fork node splitting into two parallel activities, which then join back at a join node before reaching the final node. What does this structure represent?

AParallel execution of activities that synchronize before completion
BConditional branching where only one activity executes
CSequential execution of activities one after another
DLooping of activities until a condition is met
Attempts:
2 left
💡 Hint

Think about what fork and join nodes do in activity diagrams.

Comparison
advanced
2:00remaining
Comparing activity diagrams and flowcharts

Which statement best describes a key difference between UML activity diagrams and traditional flowcharts?

AFlowcharts are part of UML, but activity diagrams are not
BFlowcharts use swimlanes to show responsibilities, but activity diagrams do not
CActivity diagrams only show data flow, while flowcharts show control flow
DActivity diagrams can model concurrent activities, while flowcharts typically cannot
Attempts:
2 left
💡 Hint

Consider how each diagram handles multiple activities happening at the same time.

Reasoning
expert
2:00remaining
Determining the number of activities in a complex diagram

An activity diagram includes: 1 initial node, 3 action nodes, 1 decision node with 2 outgoing flows, 2 merge nodes, 1 fork node splitting into 2 parallel actions, 1 join node, and 1 final node. How many distinct action activities are represented?

A6
B5
C7
D8
Attempts:
2 left
💡 Hint

Count all action nodes including those after the fork node.