SYSTEM AND DESIGN CHAPTER 6
13. A collaboration consists of _____. a. two instances of a class talking with each other b. two instances of a class knowing the value of each others attributes c. a set of classes that share common operations d. a set of classes that are all related to one another e. a set of classes involved in a use case
Ans: e Response: See page 211
17. Which of the following is part of a CRC card? a. class name b. type c. description d. responsibilities e. all of the above
Ans: e Response: See page 212
3. Which of the following would most likely not be an example of an attribute? a. employee name b. customer address c. stock number d. ISBN number e. cancel appointment
Ans: e Response: See page 209
6. Which of the following will be converted to methods in later phases of the SDLC? a. attributes b. operations c. classes d. objects e. abstract classes
Ans: b Response: See page 209
10. If a "student signs up for a class," which type of relationship would you use to model the relationship between the two? a. generalization b. association c. aggregation d. subsetting e. vague
Ans: b Response: See page 210
12. A(n) _____ formalizes the interactions between a client and server object. a. relationship b. contract c. abstract object d. concrete object e. abstraction
Ans: b Response: See page 211
15. A _____ object is the instance of a class that receives a request from another object. a. client b. server c. contract d. provider e. CRC
Ans: b Response: See page 211
16. A mechanism for developing CRC cards is for the user or analyst to role-play as if they are an instance of the class. This process is called _____. a. acting b. anthropomorphism c. interviewing d. anamorphous e. observation
Ans: b Response: See page 211 & 213
1. Which of the following are used to create objects? a. concrete objects b. abstract objects c. concrete classes d. abstract classes e. concrete instances
Ans: c Response: See page 209
2. An _____ of an analysis class represents a piece of information that is relevant to the description of the class. a. instance b. object c. attribute d. operation e. relationship
Ans: c Response: See page 209
9. "A-part-of" or "has-parts" relationships represent _____ relationships. a. generalization b. association c. aggregation d. subsetting e. vague
Ans: c Response: See page 210
18. Which of the following would not be an appropriate class name? a. student b. patient c. John d. customer e. doctor
Ans: c Response: See pages 213-214
21. One way to identify objects for the class diagram is to scan the use case descriptions for ____. a. relationships b. object lists c. patterns d. nouns e. verbs
Ans: d
4. Which of the following types of attributes is not proper in an analysis class? a. integers b. strings c. doubles d. compound e. date
Ans: d Response: See page 209
7. Service is another name for _____. a. attribute b. class c. abstract class d. operation e. object
Ans: d Response: See page 209
20. A public attribute is shown in a class diagram with the symbol _____ before the name. a. - b. # c. * d. + e. /
Ans: d Response: See page 213
5. A(n) _____ of an analysis class is where the behavior of the class is defined. a. operation b. attribute c. class d. object e. abstract class
Ans: a Response: See page 209
8. "A-kind-of" relationships represent _____ relationships. a. generalization b. association c. aggregation d. subsetting e. vague
Ans: a Response: See page 210
11. CRC cards are used to document the responsibilities and collaborations of a(n) _____. a. class b. relationship c. object d. attribute e. operation
Ans: a Response: See page 211
14. A _____ object is an instance of a class that sends a request to an instance of another class for an operation to be executed. a. client b. server c. contract d. requester e. CRC
Ans: a Response: See page 211
19. A class diagram is a(n) _____ model. a. static b. dynamic c. evolving d. obsolete e. none of the above
Ans: a Response: See page 213
