McGraw-Hill OnlineMcGraw-Hill Higher EducationLearning Center
Student Centre | Lecturer Centre | Info Centre | HOME

Glossary
Q 18.C supplement
Self-test Questions

Cover
Object-Oriented Systems Analysis and Design Using UML, 2/e
Simon Bennett, Systems Architect with GEHE UK
Steve McRobb, Senior Lecturer, De Montfort University
Ray Farmer, Associate Dean, Coventry University

Specifying Control

Self-test Questions



1

Which of the following is true?
A)A state is never transitory, it always lasts for an interval of time.
B)A state is a condition during the life of an object or an interaction during which it satisfies some condition.
C)An object always has more than one potential state.
2

The transition from one state to another is triggered by an event. One type of event is a change event. Which of the following statements is true?
A)A change event occurs when a condition becomes true.
B)A change event occurs when a condition changes.
C)A change event occurs when an attribute value changes in an object.
3

Which of the following statements is true about statecharts in general?
A)A statechart must have a final state.
B)A statechart must have at least one initial state.
C)A statechart must have one initial and one final state.
4

A guard condition may be associated with a transition. Which of the following statements best applies to guard conditions?
A)A guard condition may only involve attributes of the object that owns the statechart.
B)A guard condition may involve attributes and links of the object that owns the statechart.
C)A guard condition may only involve parameters from the triggering event.
5

On the following figure which symbol represents the final state in the statechart?

<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif::Fig. 11.5::/sites/dl/free/0077098641/41598/ch11_p5.gif','popWin', 'width=NaN,height=NaN,resizable,scrollbars');" href="#"><img valign="absmiddle" height="16" width="16" border="0" src="/olcweb/styles/shared/linkicons/image.gif">Fig. 11.5 (2.0K)</a>
Fig. 11.5

A)1
B)2
C)3
6

Which of the following statements is true about actions and activities?
A)An activity may be tied to a transition.
B)An action may only be tied to transitions.
C)Both actions and activities may be tied to a state.
7

When an internal transition occurs within a state which of the following is true?
A)The entry and exit actions, if present, are triggered.
B)The entry and exit actions are not triggered.
C)The entry and exit actions if present and the action tied to the internal transition are all triggered.
8

A statechart may have states that include substates. Which of following is true?
A)An object may occupy more multiple concurrent substates simultaneously.
B)An object may occupy only two concurrent substates simultaneously.
C)An object may only occupy one substate at a time.
9

When an object exits a composite state which of the following is true.
A)Each of the submachines in the composite state must enter their final state.
B)At least one of the submachines in the composite state must enter its final state.
C)Whatever combination of substates the composite is in, all those substates are exited.
10

The behavioural approach to constructing statecharts involves which of the following?
A)All interaction sequence diagrams should be analysed first.
B)All interaction sequence diagrams involving classes that have heavy messaging should be analysed.
C)One interaction sequence diagram for each class must be analysed.
11

The lifecycle approach to constructing statecharts is so called for which of the following reasons.
A)The statecharts are constructed throughout the development lifecycle.
B)Collaboration diagrams rather than sequence diagrams are used to analyse behaviour.
C)It attempts to identify the lifecycle of a class from use cases and other requirements documents.
12

When a statechart is checked for consistency with other models of the system which of the following is true?
A)Every operation in a class must appear as an event on a statechart.
B)Every action should correspond to the execution of an operation on the appropriate class.
C)Every event must appear on a sequence diagram.