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

Interaction Among Objects

Self-test Questions



1

Which of the following is true?
A)Identifying what messages are passed between objects is a straightforward process.
B)Message passing is a metaphor used to describe object interaction.
C)Message passing is only concerned with query operations.
2

Which of the following is true about boundary objects?
A)The identification and specification of boundary objects is purely a design activity.
B)The identification and specification of boundary objects is part of requirements specification.
C)The identification and specification of boundary objects is considered in both analysis and design but in different ways.
3

Which is the correct UML definition of a collaboration?
A)A collaboration describes the messages between objects.
B)A collaboration describes objects that share functionality.
C)A collaboration describes the structure of instances playing roles in a behaviour and their relationships.
4

An interaction sequence diagram drawn during analysis differs from one drawn during design which of the following ways?
A)It normally does not include design objects or detailed specifications of message signatures.
B)It does not include boundary objects.
C)It does not include control objects.
5

On the following figure which symbol represents a process activation on a sequence diagram?

<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif::Fig. 9.5::/sites/dl/free/0077098641/41598/ch9_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. 9.5 (3.0K)</a>
Fig. 9.5

A)1
B)2
C)3
6

Which of the labelled symbols in the following diagram represents a synchronous message?

<a onClick="window.open('/olcweb/cgi/pluginpop.cgi?it=gif::Fig. 9.6::/sites/dl/free/0077098641/41598/ch9_p6.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. 9.6 (2.0K)</a>
Fig. 9.6

A)1
B)2
C)3
7

What is meant by the term ‘thread of control’ in the context of concurrent behaviour?
A)A thread of control is a weak part of the control system.
B)A thread of control is the mechanism that controls concurrent behaviour.
C)A thread of control is an execution pathway that may occur simultaneously with other execution pathways.
8

Which of the following is an appropriate way of managing complex behaviour on an interaction sequence diagram?
A)A group of objects can be represented by a single lifeline.
B)Some messages are omitted to reduce the complexity.
C)Some objects are omitted from the diagram to reduce the complexity.
9

Collaboration diagrams differ from interaction sequence diagrams in the following way?
A)Collaboration diagrams cannot show the design detail that can be shown on a sequence diagram.
B)Collaboration diagrams only show the collaboration and not the sequence in which the messages are sent.
C)Collaboration diagrams show the links between the objects.
10

In a collaboration diagram one message has the sequence number 5.1.1. Which of the following sequence numbers indicates the message that must be the immediate successor?
A)A message with the sequence number 5.1.2.
B)A message with the sequence number 5.1.1.1.
C)A message with the sequence number 5.2.1.
11

Which of the following is a disadvantage of collaboration diagrams?
A)A collaboration diagram can only be used during analysis.
B)A collaboration diagram cannot include guard conditions.
C)A collaboration diagram is difficult to read if there are many messages between two objects.
12

An interaction diagram should be consistent with the associated class diagram in various ways. Which of the following statements is true?
A)It is always correct to show a message between two objects if there is an association between their classes.
B)The sending object must have the object reference of the receiving object before sending an object-scope message.
C)A message should not be shown between two objects if there is no association between their classes.