Quiz 13

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The following figure shows a state machine. If the state machine is in state S1 what is the sequence of actions performed when the event e3 occurs? statemodelEx2.png act4, act3,act16,act10 act4, act3, act16, act30, act10 act3, act16, act10 act4, act3, act7 act3, act4, act17

4, 3, 16, 30, 10

Which one of the following is TRUE about a state model? A guard condition on an exit activity is a Boolean expression that must be true for allowing the exit out of the state. A do event is an on-going behavior that is performed as long as the modeled statement is in the state or until the computation specified by the expression is completed. A group transition takes precedence when two or more transitions may have the same event triggers. All transitions require an event trigger. A self-transition bypasses entry and exit actions (if exist).

A do event is an on-going behavior that is performed as long as the modeled statement is in the state or until the computation specified by the expression is completed.

Which one of the following is a FALSE statement about run-to-completion semantics? Events are handled one-at-a-time by a state machine. When a state machine is handling an event it cannot be interrupted to handle another event sent to the state machine. Events that come in while a state machine is handling an event are stored for future handling. Incoming events can be stored in some prioritized order. A high priority event received by a state machine interrupts the state machine when it is handling a low priority event and takes the event that is currently being processed from the pool.

A high priority event received by a state machine interrupts the state machine when it is handling a low priority event and takes the event that is currently being processed from the pool.

Which one of the following is TRUE about a state model or statechart? A state chart diagram shows method of execution on receipt of message and activities used in the method. No answer text provided. A start model cannot show any parallel view of two different aspects of an object. A shallow history pseudo-state stores the most recent active configuration of the composite state that directly contains its pseudostate. In a statechart, a transition cannot leave and return to the same state. No answer text provided.

A state chart diagram shows method of execution on receipt of message and activities used in the method.

Which one of the following is a FALSE statement about active objects? An active object has its own thread of control. An active object starts carrying out its specified behavior as soon as it is created. It does not need to wait for another object to invoke its methods. An active object cannot be terminated by another object. An active object responds to messages sent by other objects only at specified points in its behavior. An active object is not a passive object (a passive object is one that has to receive a message from another object before it can do anything).

An active object cannot be terminated by another object.

Which one of the following statements about a state machine event is TRUE? An event is an action. An event is an activity. An event has duration greater than 0. An event can mark a significant occurrence at some point in time. An event cannot occur when a state machine is in a state.

An event can mark a significant occurrence at some point in time.

Which of the following is a FALSE statement? An exit action in a state is performed just before the state is exited. An entry action in a state is performed just after the state is entered. Exit and entry actions of a state are performed when a self transition is made on the state. Exit and entry actions of a state are performed when an internal transition is made on the state. Entry and exit actions cannot have guard conditions.

Exit and Entry actions of a state are performed when an internal transition is made on the state.

The following is an example of an event: after(license period). What type of event is this? Change event Signal event Time event A guard condition. An action.

Time event


Set pelajaran terkait

Foundations of the Restoration Midterm 1

View Set

Complex Data Types in Python: Working with Lists & Tuples in Python

View Set

Macroeconomics Review: Modules 22, 23, 25

View Set

advanced social psychology exam 2

View Set