OOP - Ch 9
1) ________ is about modeling actions and interactions of a system's components to satisfy its requirements. A) Dynamic modeling B) Use case modeling C) A class diagram D) Structural modeling
A
10) ________ specify the data that must be supplied to an object to carry out a specific operation. A) Parameters B) Strings C) Types D) Visibility
A
12) Parameters are ________ that carry data of a certain type, but are not data themselves. A) containers B) objects C) attributes D) operations
A
14) In the example "orderDessert(Ice Cream, 2)", orderDessert is ________. A) an operation B) an argument C) a parameter D) data
A
19) In the example "Public Currency payBill(amount, paymentType", Public refers to ________. A) visibility B) a parameter C) a return type D) a name
A
22) In the example "Public Currency payBill(amount, paymentType", Currency refers to ________. A) a return type B) visibility C) a parameter D) a name
A
24) How an operation is implemented or actually carried out is referred to as ________. A) a method B) a return value C) a message D) operational
A
26) Which of the following is NOT a type of event? A) order B) call C) signal D) time
A
31) A collaboration diagram is ________ diagram. A) an interactive B) the same as a sequence C) also called a collaborative D) a structural
A
33) A snapshot of an object at a certain stage in time is the ________ of the object A) state B) life C) condition D) event
A
35) A statechart diagram is composed of the states of an object and the flow of ________ that change its state. A) events B) messages C) instructions D) arguments
A
40) Since a ________ diagram's level of detail or scope is not predetermined, you may choose a level or scope that suits your needs or the complexity of the scenario that the diagram represents A) sequence B) class C) object D) structural
A
6) Dynamic modeling must show not only who interacts with whom and how, but in what ________. A) order B) location C) area D) setting
A
9) ________ are instructions and information sent to objects in the expectation that the recipient objects will carry out certain actions. A) Messages B) Data C) Bits and bytes D) Orders
A
11) Parameters are defined in terms of ________. A) objects B) variables C) attributes D) operations
B
15) In the example "orderDessert(Ice Cream, 2)", Ice Cream is a(n) ________. A) parameter B) value C) argument D) operation
B
16) "getMenu()" is an example of ________. A) a value B) an argument C) data D) an object
B
21) In the example "Public Currency payBill(amount, paymentType", amount refers to ________. A) visibility B) a parameter C) a return type D) a name
B
27) Which one of the following events is an asynchronous event? A) order B) signal C) call D) private
B
3) Dynamic modeling features ________. A) classes B) objects C) behavior D) structure
B
32) A ________ diagram represents milestones in the lifetime of an object when its state changes. A) sequence B) statechart C) collaboration D) structural
B
34) A statechart diagram depicts those states that are deemed as ________ from a specific viewpoint. A) redundant B) milestones C) unique D) both A & B
B
37) You need ________ diagrams only for those objects whose states affect specific behaviors of the system. A) sequence B) statechart C) collaborative D) activity
B
38) A(n) ________ diagram is the best in representing the complexities of logical flow. A) statechart B) activity C) sequence D) collaboration
B
18) A return value is always a ________ item. A) simple B) plural C) single D) parallel
C
2) Virtual objects interact by exchanging ________. A) their identities B) or changing behavior C) messages D) their attributes
C
25) Inserting your card into an ATM to get some money is an example of ________. A) a return type B) a parameter C) an event D) visibility
C
29) A(n) ________ diagram represents the interaction between objects, or between actors and objects. A) context B) class C) sequence D) activity
C
36) The most lucid tool for modeling the logical flow of activities is the ________ diagram. A) sequence B) state C) activity D) collaboration
C
39) The primary purpose of a(n) ________ diagram is the verification of object responsibilities. A) statechart B) sequence C) collaboration D) activity
C
4) Any goal-oriented interaction requires a ________. A) goal B) object C) logical flow D) road map
C
7) ________ modeling represents the interaction of the building blocks of the information system with each other and with the outside world to satisfy the behavioral requirements of the system. A) Structural B) Behavioral C) Dynamic D) Use case
C
8) Dynamic modeling is not only about objects and their interactions, but also about ________. A) classes and their interactions B) the quality of the interactions C) how the objects change through interaction D) how the objects disappear through interactions
C
13) A message from an object that invokes an operation must carry ________. A) the operation's placeholders B) orders C) abstract data D) unambiguous information
D
17) The reply that a message may invoke from the receiving object after an operation is complete is called ________. A) an answer B) a returned object C) a messenger D) a return value
D
20) In the example "Public Currency payBill(amount, paymentType", payBill refers to ________. A) visibility B) a parameter C) a return type D) a name
D
23) Which of the following is NOT a type of visibility? A) public B) private C) protected D) obvious
D
28) Which of the following events has a return value? A) order B) times C) signal D) call
D
30) Which of the following is NOT a component of a sequence diagram? A) a timeline B) objects C) messages D) a class
D
5) Dynamic modeling is all about ________. A) classes B) structure C) information systems D) interaction
D
42) Virtual objects interact by exchanging messages that do not require strict rules or carry enough information to make a response possible.
F
43) Although classes are abstractions, they are able to perform operations.
F
44) Dynamic modeling is not about communication.
F
46) Any goal-oriented interaction requires a dynamic flow.
F
48) The only thing about an object that is dynamic is its behavior.
F
49) Parameters and arguments are two different things.
F
51) A parameter is mandatory.
F
52) Methods and operation are the same thing.
F
53) Events are actions by one object that interrupts only the existing condition itself.
F
54) Change event is a specific event.
F
55) Interactions with ATMs are synchronous events.
F
57) An activity diagram concentrates on the order of activities.
F
58) A sequence diagram represents only the interaction between objects within the system.
F
59) The horizontal axis on a sequence diagram is a timeline.
F
62) As a dynamic model, a collaboration diagram represents the relationship among classes, but not objects.
F
64) The worst way to arrive at a collaboration diagram is to start from a sequence diagram.
F
66) A statechart diagram represents milestones in the lifetime of an object when its state is stable.
F
75) The main value of a statechart diagram is that it presents a clear picture of what an object expects from another.
F
76) The collaboration diagram is the only dynamic model that illustrates the milestones in the lifetime of one class of objects in its entirety.
F
79) An operation may receive a return value from the object from which it receives the message.
F
80) A signal event is an event that is triggered by the passage of time.
F
41) Dynamic modeling portrays actions and interactions of a system's components to satisfy its behavioral requirements.
T
45) Dynamic modeling must show not only who interacts with whom and how, but in what order.
T
47) Dynamic modeling represents structure in motion.
T
50) Parameters specify what information the object needs (and in which order) to carry out an action.
T
56) A sequence diagram emphasizes the order of interactions in time.
T
60) "aCutomer:Customer" and ":Customer" both correctly identify an instance.
T
61) A collaboration diagram is a dynamic diagram that focuses on the organization of objects that must cooperate, by exchanging messages, to satisfy a certain behavior.
T
63) The relationships in the collaboration diagram relate to the exchange of messages among objects.
T
65) If you cannot describe the goal, you cannot create a satisfactory collaboration diagram.
T
67) A statechart diagram is composed of the states of an object and the flow of events that change its state.
T
68) An activity diagram provides the logical flow of activities.
T
69) Sequence diagrams may be used at any stage of development to help you visualize the sequence of events, messages, and object responsibilities.
T
70) Parameters are the types of data that an object requires to perform a certain task.
T
71) Conceptual modeling usually ignores how operations are implemented.
T
72) Attributes of objects, usually private, are exposed to the outside world through accessor operations.
T
73) A sequence diagram is composed of a timeline, objects that interact across this timeline, and the messages that they exchange.
T
74) Each column in the sequence diagram identifies an instance of an actor or a class. Each "row" is the message sent or received by the entities in the column.
T
77) An anonymous message is usually an "event" message; that is, a message that is broadcasted as a signal or time event.
T
78) A method is how an operation is implemented or carried out by the object when it receives a message.
T