Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG-OCUP2-ADV300 Exam - Topic 4 Question 44 Discussion

Actual exam question for OMG's OMG-OCUP2-ADV300 exam
Question #: 44
Topic #: 4
[All OMG-OCUP2-ADV300 Questions]

Choose the correct answer: Consider the following diagram fragment:

Assume that the system is in StateAl Which sequence of triggers will move the system to StateC?

Show Suggested Answer Hide Answer
Suggested Answer: C

Given that the system is in StateA1, the sequence of triggers that will move the system to StateC must take into account the transitions and their associated triggers as defined in the UML state diagram. Starting from StateA1, the trigger a5 will cause a transition within StateA, followed by a6, which moves to StateA2. The trigger a5 is not relevant as it is an internal transition in StateA1. Then, a3 (the exit action for StateA) and a2 would be followed to leave StateA altogether. Once out of StateA, a1 is used to transition to StateB, where a10 is an entry action, not a trigger. Finally, to get from StateB to StateC, the triggers a11 followed by a12 are needed. This sequence of triggers reflects the correct usage of exit, entry, and transition triggers as defined by UML state machine semantics.


Contribute your Thoughts:

0/2000 characters
Aliza
2 days ago
I'm not entirely sure about the triggers in this one. I feel like I might have mixed up some of the sequences.
upvoted 0 times
...
Kimbery
7 days ago
I think I remember that we practiced a similar question where we had to identify the correct sequence of triggers. It was tricky!
upvoted 0 times
...

Save Cancel