Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define the start point in an activity diagram.
LLD
start = [1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing start with end node
Using decision node as start
✗ Incorrect
The start of an activity diagram is represented by an InitialNode.
2fill in blank
mediumComplete the code to add a decision node in the activity diagram.
LLD
decision = [1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using fork node instead of decision node
Using initial node here
✗ Incorrect
A DecisionNode is used to represent a branching point in the activity flow.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using initial node as end
Using decision node as end
✗ Incorrect
The end of an activity diagram is represented by an ActivityFinalNode.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using decision node instead of fork
Using merge node instead of join
✗ Incorrect
A ForkNode splits the flow into parallel paths, and a JoinNode synchronizes them back.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up guard and next parameters
Using invalid guard syntax
✗ Incorrect
The activity named "ProcessOrder" proceeds to "ShipOrder" only if the guard condition "orderValid == true" is met.