0
0
LLDsystem_design~10 mins

Activity diagrams in LLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the start point in an activity diagram.

LLD
start = [1]()
Drag options to blanks, or click blank then click option'
ADecisionNode
BActivityFinalNode
CInitialNode
DMergeNode
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing start with end node
Using decision node as start
2fill in blank
medium

Complete the code to add a decision node in the activity diagram.

LLD
decision = [1]()
Drag options to blanks, or click blank then click option'
AInitialNode
BDecisionNode
CActivityFinalNode
DForkNode
Attempts:
3 left
💡 Hint
Common Mistakes
Using fork node instead of decision node
Using initial node here
3fill in blank
hard

Fix the error in the code to correctly represent the end of an activity.

LLD
end = [1]()
Drag options to blanks, or click blank then click option'
AActivityFinalNode
BDecisionNode
CInitialNode
DForkNode
Attempts:
3 left
💡 Hint
Common Mistakes
Using initial node as end
Using decision node as end
4fill in blank
hard

Fill both blanks to create a fork and join in the activity diagram.

LLD
fork = [1]()
join = [2]()
Drag options to blanks, or click blank then click option'
AForkNode
BDecisionNode
CJoinNode
DMergeNode
Attempts:
3 left
💡 Hint
Common Mistakes
Using decision node instead of fork
Using merge node instead of join
5fill in blank
hard

Fill all three blanks to define an activity with guard conditions.

LLD
activity = ActivityNode(name=[1], guard=[2], next=[3])
Drag options to blanks, or click blank then click option'
A"ProcessOrder"
B"orderValid == true"
C"ShipOrder"
D"CheckInventory"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up guard and next parameters
Using invalid guard syntax