You are on page 1of 11

7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

LOGIN HELP

UML Quiz

Quiz Score
You have solved Activity diagram with 29 Questions.
6.90% Questions were answered correct.
Get some feedback by viewing each Question.

Question 1: Which kind of node do the following images show?

activity final node

flow final node

initial node

Question 2:Which of the following activity diagram clippings are


correct considering the control flow? (token concept!)

A is activated as soon as all incoming edges have tokens. This can never
happen. It is likely that the modeler tried to model a loop. This could be done
as follows:

elearning.uml.ac.at/submitQuiz 1/11

about:blank 1/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

The decision node (diamond) is a control node that passes the control flow
to one of several outputs depending on the evaluation of the guard
conditions. The token is passed to either B or C. The join node can only
synchronise the incoming flows as soon as all previous executions (here: B
and C) are completed. This can never happen.

Question 3:Which of the following statements about object


nodes in a UML2 activity diagram are true?
Each object node needs to have the declaration of a type and a state.

The result of an action can be the content of an object node.

Object nodes can be used as input and output nodes for activities.

An object node processes object token.

Which of the following statements about actions in a


Question 4:
UML2 activity diagram are true?
Actions are atomic.

An action consists of several activities.


An activity consists of several actions.

Actions cannot be aborted.


Actions can be aborted. In the case of an abortion all effects that the action
has already created have to be undone as if the action has never been
started in the first place because actions are atomic.

Actions can manipulate objects and their values.

Question 5: You are given the following activity diagram. Which


of the following action sequences are possible during one
execution of the activity diagram?

B → C
elearning.uml.ac.at/submitQuiz 2/11

about:blank 2/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

C can only be executed as soon as A and B are finished.

A → C
C can only be executed as soon as A and B are finished.

A → B → C

B → A → C

Question 6: You are given the following activity diagram. Which


of the following action sequences are possible during one
execution of the activity diagram?

A → C

A → B → C
Either B or C are executed.

A → C → B
Either B or C are executed.

A → B

Question 7: You are given the following activity diagram. Which


of the following action sequences are possible during one
execution of the activity diagram?

A → B → D

A → B → C

A → D

A → B → C → D
After the execution of C is completed, the control flow reaches an activity
final node which terminates all activity within the graph. D cannot be
executed.

A → B → D → C
After the execution of D is completed, the control flow reaches an activity
final node which terminates all activity within the graph.

Question 8: You are given the following activity diagram. Which


of the following action sequences are possible during one

elearning.uml.ac.at/submitQuiz 3/11

about:blank 3/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

execution of the activity diagram?

A → B → C

A → B
After the successful execution of B, the control flow continues regularly, thus
C is executed.

A → C

Question 9: You are given the following activity diagram. Which


of the following action sequences are possible during one
execution of the activity diagram?

A → C

A → B
C has to be executed to reach the activity final node that terminates the
whole graph.

A → C → B
After the execution of C is completed, the control flow reaches an activity
final node which terminates all activity within the graph. B cannot be
executed.

B
A and C have to be executed to reach the activity final node that terminates
the whole graph.

A → B → C

Question 10: The activity final node of an UML2 activity diagram


...
... makes, once reached, the execution of other activities within the graph
impossible.
... can only be modeled once in each model.

... terminates all activities within the graph.

Question 11: You are given the following activity diagram. Which
of the following action sequences are possible during one

elearning.uml.ac.at/submitQuiz 4/11

about:blank 4/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

execution of the activity diagram?

A → B → D → C
After the completion of D the whole graph is terminated, C cannot be
executed.

A → B → D

A → C

A → B → C
If event B occurs while A is executed, all activity in the region (within the
pointed rectangle) is terminated and control is transfered to the interrupt
handler activity node (D).

Question 12: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → B → C → D

A → B → D → C

A → C
B and D also have to be executed before the flow is synchronised and
reaches the final node.

A → C → B → D

A → B → D
C also has to be executed before the flow is synchronised and reaches the
final node.

Which of the following statements about partitions in


Question 13:
a UML2 activity diagram are true?
Partitions must not have a hierarchical depth of more than one.

Partitions group nodes and edges of an activity.

Partitions make a model clearer.

Partitions might be used to organize the responsibilities of actors for


certain actions.

elearning.uml.ac.at/submitQuiz 5/11

about:blank 5/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

Question 14: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → D

A → B → D

A → B → C
The flow final node after C only terminates this thread, D also has to be
completed to reach the activity final node and terminate the whole graph.

A → B → C → D

A → B → D → C
After the execution of D is completed, the control flow reaches an activity
final node which terminates all activity within the graph. C cannot be
executed.

Question 15: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → C → B

A → B → C

A → B
After the execution of B, the execution of this one branch is terminated, but
the execution of the other branch can go on. Thus C has to be executed
ensuring that the second flow final node is reached and the graph is
terminated.

A → C
After the execution of C, the execution of this one branch is terminated, but
the execution of the other branch can go on. Thus B has to be executed
ensuring that the second flow final node is reached and the graph is
terminated.

Question 16: A decision node in a UML2 activity diagram ...


... passes control to one of several outputs.

... can be used to model loops if combined with a merge node.

... should have mutually exclusive guard conditions on all outgoing


edges.
... is noted as a diamond with one incoming and multiple outgoing edges.

... specifies the direction of the control flow with guard conditions.

elearning.uml.ac.at/submitQuiz 6/11

about:blank 6/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

Which of the following nodes are elements of a


Question 17:
UML2 activity diagram?
control node

object node

communication node

action node

Question 18: A join node of a UML2 activity diagram ...


... synchronizes multiple parallel flows.

... unites tokens as soon as they are available on all incoming edges.

... is noted as a black bar with multiple incoming edges and one outgoing
edge.
... synchronizes multiple alternative flows.
A join node synchronizes multiple parallel flows. A merge node "unbranches"
two or more concurrent control paths.

Question 19:Which of the following statements about buffer


nodes in a UML2 activity diagram are true?
There are persistent and transient buffer nodes.

Transient buffer nodes are noted with the term <<centralBuffer>>.

Persistent buffer nodes are noted with the term <<datastore>>.

Transient buffer nodes store object tokens and pass on duplicates.


Persistent buffer nodes store object tokens and pass on duplicates.

Question 20: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → C
elearning.uml.ac.at/submitQuiz 7/11

about:blank 7/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

A → B

A → C → B
After the execution of C is completed, the control flow reaches the activity
final node which terminates all activity within the graph. B cannot be
executed.

A → B → C
After the execution of B is completed, the control flow reaches an activity
final node which terminates all activity within the graph. C cannot be
executed.

Question 21: Wich of the following statements about the UML2


activity diagram are true?
Signals and events are special types of actions.

The handling of exceptions can be modeled with exception handlers.

It is possible to influence which token should be passed on and which


should not.
Every object node can store an arbitrary number of data token.
A capacity upper bound can be specified with each object node.

A data token can never change.


Data tokens can be transformed explicitly by noting transformations.

It is not possible to manipulate the order of the passing of data token.


The order can be manipulated with the "ordering property" (e.g. FIFO, LIFO
etc.).

Which of the following nodes are elements of a


Question 22:
UML2 activity diagram?
fork node

join node

flow final node

distribution node

communication node

knife node

decision node

Question 23: Object nodes in a UML2 activity diagram ...


... have no outgoing edges.

... contain data token.

... can be the input to or the output of an action.

elearning.uml.ac.at/submitQuiz 8/11

about:blank 8/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result


... may be constrained to be in a specific state.

Question 24: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → B → C → D

A → B → D
C also has to be executed.

A → B → C
D also has to be executed.

A → D → B → C
B alsways has to be executed before C.

A → D → C
B alsways has to be executed before C.

A → B → D → C

A → D
B and C also have to be executed.

Question 25: Which kind of node do the following images show?

fork node

join node

merge node

decision node

Question 26: Activities in a UML2 activity diagram ...


... can be attached to a classifier.

elearning.uml.ac.at/submitQuiz 9/11

about:blank 9/11
7/21/23, 12:26 AM Activity - Lecture notes 5

2/20/22, 12:16 PM UML Quiz - Result

... is atomic.
Activities are not atomic, actions are atomic.

... specify executable behavior.

... contains actions as well as control and data flows.

... is a directed graph that consists of nodes and edges.

... must not have any parameters.


An activity can have input and output parameters. Additionally you can
specify preconditions and postconditions.

Question 27: An initial node in a UML2 activity diagram ...


... can only be used once in each activity diagram.
An activity diagram might have several initial nodes to start concurrent
threads.

... places a control token on all outgoing edges.

... indicates the place where the execution should begin.

... cannot save token.


The initial node can store tokens until they are accepted by the subsequent
nodes.

Question 28: You are given the following activity diagram. Which
of the following action sequences are possible during one
execution of the activity diagram?

A → B → C

A → B → D → C
After the execution of D is completed, the control flow reaches the activity
final node which terminates all activity within the graph. C cannot be
executed.

A → B → D

A → B → C → D
After the execution of C is completed, the control flow reaches the activity
final node which terminates all activity within the graph. D cannot be
executed.

A → D

Question 29: A fork node of a UML2 activity diagram ...


... is only valid when combined with a join node.

... is used for modeling parallel threads.

elearning.uml.ac.at/submitQuiz 10/11

about:blank 10/11
7/21/23, 12:26 AM Activity - Lecture notes 5

about:blank 11/11

You might also like