A decision node in a thermostat's activity diagram branches on the integer room temperature ttt, in degrees Celsius. Which of the following guard sets make the decision well formed, so that exactly one guard is true for every possible integer value of ttt? Select all that apply.
[t<18][t < 18][t<18] and [t>18][t > 18][t>18]
[t<0][t < 0][t<0], [0≤t<30][0 \le t < 30][0≤t<30] and [t≥25][t \ge 25][t≥25]
[t<18][t < 18][t<18], [18≤t≤25][18 \le t \le 25][18≤t≤25] and [t>25][t > 25][t>25]
[t≤20][t \le 20][t≤20] and [else][\text{else}][else]
[t≤20][t \le 20][t≤20] and [t≥20][t \ge 20][t≥20]
Unlock full course notes by signing up
Counting scenarios in a checkout activity
An online shop's checkout activity runs as follows. After Validate cart, a decision has the guards [new customer], [returning customer] and [guest]. These lead to Create account, Load profile and no action respectively, and the three edges meet at a merge. The flow then reaches a fork with two concurrent branches. In branch 1, a decision sends [express] to Book courier and [else] to Book post, followed by a merge. In branch 2, a decision sends [coupon entered] to Apply coupon and [else] directly to a merge. The branches meet at a join, then Confirm order runs and the activity ends. A scenario is one combination of guard outcomes in a single run. How many distinct scenarios does the activity have? Give your answer as a whole number.
Elapsed time through a fork and join
A mobile team models an app release as a UML activity diagram. The initial node flows to Merge features (5 h). Fork node F then starts three concurrent branches:
Branch 1: Run regression tests (12 h), then Fix minor defects (6 h).
Branch 2: Translate new strings (10 h).
Handoffs between swimlanes in an expense claim
A company models its expense-claim process as a UML activity diagram with three partitions (swimlanes): Employee, Manager and Finance. The flows are:
The initial node flows to Submit claim (Employee), which flows to decision D1.
D1 has guards [amount ≤ 100] to merge node M and [amount > 100] to Review claim (Manager).
Interleaving three concurrent branches
A warehouse dispatch activity forks into three concurrent branches that meet at a join. Branch A runs Pick items, then Pack items. Branch B runs Print label only. Branch C runs Update inventory, then Notify supplier. One worker performs all five actions one at a time, keeping each branch's internal order. Find the number of valid orderings of the five actions, and the number of different actions that could be performed first. Give both answers as whole numbers.