Quiz


1.  

What is collaboration?

collaboration describes how two or more classes interact and work with one another.

2.  

What is a UML sequence diagram?

a uml (unified modeling language) sequence diagram is used to represent a sequence of operations between classes.

3.  

Are UML sequence diagrams usually all-inclusive diagrams?

no. they are typically diagrams of smaller portions or overviews of an application. an application may contain many sequence diagrams.

4.  

Do UML sequence diagrams show flow control?

no. unlike flow charts, sequence diagrams do not show flow control; they show sequence.

5.  

What does a dashed line indicate in a sequence diagram?

a return value from a method call.

6.  

What does a solid line indicate in a sequence diagram between two objects?

a method call from one object to the other, as indicated by an arrow.

7.  

What is a UML collaboration diagram?

a uml collaboration diagram shows the basic collaboration or relationship between classes.

8.  

Technically, what is a message?

a message is normally a method call. a class may receive a message by having one of its methods called, or it may send a message to another class by invoking a method of the other class.

9.  

Should you create diagrams using base class names if the derived object you are using doesn t use any methods outside its base class?

no. if you have a class derived from another, for diagram purposes, it is best to use the more descriptive derived class name even if none of the derived class methods are used (in other words, use enrollments , not vector ).

10.  

What is a Class Responsibility Collaborator diagram?

it is a diagram that shows the class name, its methods, and the classes with which it collaborates. a crc diagram provides an overview of how a class interacts with other classes and what it provides. it is not concerned with sequences or detailed collaboration descriptions.

Answers

1.  

Collaboration describes how two or more classes interact and work with one another.

2.  

A UML (Unified Modeling Language) sequence diagram is used to represent a sequence of operations between classes.

3.  

No. They are typically diagrams of smaller portions or overviews of an application. An application may contain many sequence diagrams.

4.  

No. Unlike flow charts , sequence diagrams do not show flow control; they show sequence.

5.  

A return value from a method call.

6.  

A method call from one object to the other, as indicated by an arrow.

7.  

A UML collaboration diagram shows the basic collaboration or relationship between classes.

8.  

A message is normally a method call. A class may receive a message by having one of its methods called, or it may send a message to another class by invoking a method of the other class.

9.  

No. If you have a class derived from another, for diagram purposes, it is best to use the more descriptive derived class name even if none of the derived class methods are used (in other words, use Enrollments , not Vector ).

10.  

It is a diagram that shows the class name, its methods, and the classes with which it collaborates. A CRC diagram provides an overview of how a class interacts with other classes and what it provides. It is not concerned with sequences or detailed collaboration descriptions.




OOP Demystified
OOP Demystified
ISBN: 0072253630
EAN: 2147483647
Year: 2006
Pages: 130

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net