01. A modeler keeps a graphical UML model and wants the detail of one operation written in Alf v1.1 rather than drawn.
How does Alf v1.1 provide for that?
a) the text is kept in a comment on the operation, which a tool reads when it generates code
b) the text is compiled into an activity diagram, which then replaces the operation's declaration
c) the text is stored in a profile applied to the model, which supplies bodies for its operations
d) the text serves as the body of an opaque behavior, which may be the method of that operation
02. A modeler writes a short sequence of Alf v1.1 statements - a local name declaration, a call and a conditional - as the behavior of one element of a UML model.
What does that text stand for in the model?
a) A Constraint, its text held as an OpaqueExpression and evaluated whenever the model is checked.
b) An Activity, its statements standing for Actions and their sequencing for the flows between them.
c) A StateMachine, its statements standing for States and its conditional for the guards on two Transitions.
d) Program source in the implementation language, generated from the model and kept alongside the element it belongs to.
03. A specializing class restates an inherited association end, once with {redefines target} and once with {subsets target}.
How do those two constraints differ?
a) Redefining adds an end whose values are drawn from the inherited end; subsetting replaces the inherited end for the specializing classifier.
b) Redefining replaces the inherited end for instances of the specializing classifier; subsetting adds an end whose values always lie within the inherited end's values.
c) Both replace the inherited end, and they differ only in whether the replacement is allowed to narrow its type.
d) Both add an end alongside the inherited one, and they differ only in whether the added end is derived.
04. A state machine shows a transition drawn as an arrow that leaves a state and returns to that same state.
What happens when it fires?
a) The transition is ill-formed, and a Transition must join a source vertex and a target vertex that differ.
b) The machine returns to its initial pseudostate, and enters the state again from there.
c) The state is exited and re-entered, so its exit and entry behaviors run.
d) The state stays active, so neither its exit nor its entry behavior runs.
05. A StateMachine is in a State that lists Event E among its deferrableTriggers. An occurrence of E arrives, and no Transition out of that State responds to it.
What becomes of the occurrence?
a) It triggers the State's exit Behavior and then leaves the machine unchanged.
b) It is discarded, as any occurrence that enables no Transition would be.
c) It stays in the event pool until a State is entered that does not defer it.
d) It is redirected to the enclosing Region, which offers it to the other States.
06. A stereotype in an applied profile declares a property, and the stereotype is applied to an element of the user model.
What is the tagged value that results?
a) a slot on that element holding a value for the property the stereotype declares
b) a keyword shown in guillemets beside the name of the element in a diagram
c) a constraint the profile attaches to the element, restricting how it may be used
d) a property added to the metaclass, available on every element it classifies
07. Alf v1.1 is a textual notation, and two conforming implementations must agree about what a given piece of Alf text means.
What fixes that meaning?
a) the grammar of the lexical structure clause, which fixes meaning along with the token forms
b) the behavior of a reference implementation, against which every conforming tool is measured
c) the UML model the text is embedded in, whose diagrams settle what each of its statements does
d) the mapping the specification gives from Alf into fUML, whose execution semantics then apply
08. An ExecutableNode inside an Activity is the protectedNode of an ExceptionHandler, and during its execution an exception of the declared exceptionType is raised.
What happens next?
a) The node is abandoned and the handlerBody runs in its place, taking the exception object on exceptionInput.
b) The whole Activity terminates at once, and the exception object is emitted through an exception Parameter.
c) The node completes its execution as normal, and the handlerBody then runs on the outputs it produced.
d) The node is re-executed from the start, and the handlerBody runs only if the same exception recurs.
09. UML classifies a Transition as external, local or internal.
What distinguishes an internal Transition of a composite State from a local one?
a) an internal transition runs its effect without exiting the state, so no exit or entry behavior executes
b) a local transition leaves the composite state, while an internal one exits and re-enters only the active substate
c) an internal transition may be triggered only by a completion event, while a local one accepts any trigger
d) an internal transition is drawn as an arrow inside the state, while a local one crosses its border
10. UML v2.5.1 collects into its Common Behavior chapter the constructs on which every kind of behavior rests.
What does that chapter define?
a) the notation and semantics of activity diagrams, from which the other behavior diagrams are derived
b) the general notion of a behavior, its invocation through behavioral features and triggers, and the event pool
c) the behavior several classifiers hold in common, factored into a supertype from which each of them inherits it
d) the behavior a tool runs by default for any classifier whose own behavior a modeler has left unspecified