Deck 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/15
Play
Full screen (f)
Deck 25: ATM Case Study, Part 1: Object-Oriented Design With the Uml
1
Double ) specifies an operation:
A) Called credit that has a parameter amount, and returns a Double.
B) Called credit that has two parameters amount and Double, and returns a Double.
C) Called credit that has a parameter amount, and returns nothing.
D) Called credit that has two parameters amount and Double, and returns nothing.
A) Called credit that has a parameter amount, and returns a Double.
B) Called credit that has two parameters amount and Double, and returns a Double.
C) Called credit that has a parameter amount, and returns nothing.
D) Called credit that has two parameters amount and Double, and returns nothing.
C
2
An activity diagram for modeling the actions involved in executing a balance inquiry transaction using the BalanceInquiry object should not include:
A) Receiving the user's main menu input selecting a balance inquiry transaction.
B) Retrieving the user's balance information from the database of accounts.
C) Displaying the user's balance information on the screen.
D) All of the above actions should be modeled in this activity diagram.
A) Receiving the user's main menu input selecting a balance inquiry transaction.
B) Retrieving the user's balance information from the database of accounts.
C) Displaying the user's balance information on the screen.
D) All of the above actions should be modeled in this activity diagram.
A
3
Which of the following is not a part of a UML state diagram?
A) A solid circle indicating the initial state.
B) Rounded rectangles representing states.
C) Arrows with accompanying event description text representing transitions.
D) Fractions beside each state indicating the likelihood of entering that state.
A) A solid circle indicating the initial state.
B) Rounded rectangles representing states.
C) Arrows with accompanying event description text representing transitions.
D) Fractions beside each state indicating the likelihood of entering that state.
D
4
Which diagram is also called a collaboration diagram?
A) State machine diagram.
B) Communication diagram.
C) Activity diagram.
D) Sequence diagram.
A) State machine diagram.
B) Communication diagram.
C) Activity diagram.
D) Sequence diagram.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
5
A solid line representing an association between two classes can be accompanied by any of the following details, except:
A) A number near the end of each line indicating multiplicity values.
B) A role name for one or both of the objects.
C) A name and direction for the association.
D) An aggregation relationship with another association line.
A) A number near the end of each line indicating multiplicity values.
B) A role name for one or both of the objects.
C) A name and direction for the association.
D) An aggregation relationship with another association line.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
6
A class-type attribute is best modeled by:
A) Breaking the class down into its fundamental-type components.
B) An inheritance association.
C) Encapsulating both classes in a third, larger class.
D) A composition association.
A) Breaking the class down into its fundamental-type components.
B) An inheritance association.
C) Encapsulating both classes in a third, larger class.
D) A composition association.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
7
A message between two objects in a UML sequence diagram is represented by:
A) A dashed line with a stick arrowhead.
B) A dashed line with a filled arrowhead.
C) A solid line with a stick arrowhead.
D) A solid line with a filled arrowhead.
A) A dashed line with a stick arrowhead.
B) A dashed line with a filled arrowhead.
C) A solid line with a stick arrowhead.
D) A solid line with a filled arrowhead.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is not an actor of the ATM system?
A) A user who views an account balance.
B) A user who provides requirements for building the ATM system.
C) A user who withdraws cash from the ATM.
D) A user who deposits funds into the ATM.
A) A user who views an account balance.
B) A user who provides requirements for building the ATM system.
C) A user who withdraws cash from the ATM.
D) A user who deposits funds into the ATM.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
9
The use case diagram models ________.
A) the interactions between a system's client and the system.
B) each software life cycle stage in succession.
C) each software life cycle by repeating one or more stages several times via use cases.
D) the interactions between implementations and testing.
A) the interactions between a system's client and the system.
B) each software life cycle stage in succession.
C) each software life cycle by repeating one or more stages several times via use cases.
D) the interactions between implementations and testing.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
10
To identify an operation's parameters, we examine:
A) The data the operation will return.
B) The attributes of the class performing the operation.
C) The data the operation requires to perform its assigned task.
D) The client of the class performing the operation.
A) The data the operation will return.
B) The attributes of the class performing the operation.
C) The data the operation requires to perform its assigned task.
D) The client of the class performing the operation.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
11
An activation, represented by a thin vertical rectangle, on an object's lifeline indicates that:
A) The object is instantiated in memory.
B) The object is executing.
C) The object is waiting for another object to return control.
D) The object has terminated execution.
A) The object is instantiated in memory.
B) The object is executing.
C) The object is waiting for another object to return control.
D) The object has terminated execution.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is not a piece of information that could be found in the attribute compartment of a class's rectangle in the UML?
A) The attribute's name.
B) The attribute's memory location.
C) The attribute's type.
D) The attribute's initial value.
A) The attribute's name.
B) The attribute's memory location.
C) The attribute's type.
D) The attribute's initial value.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
13
Which diagram models system structure?
A) State machine diagram.
B) Class diagram.
C) Activity diagram.
D) Sequence diagram.
A) State machine diagram.
B) Class diagram.
C) Activity diagram.
D) Sequence diagram.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
14
In a UML communication diagram, the first message passed during the processing of message 1 is called:
A) Message 2.
B) Message 1.1.
C) Message 1-1.
D) Message 0.
A) Message 2.
B) Message 1.1.
C) Message 1-1.
D) Message 0.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
15
A composition or "has-a" relationship is represented in the UML by:
A) Attaching a solid diamond to the association line.
B) Attaching a solid triangle to the association line.
C) Making the association line bolded.
D) Making the association line dashed
A) Attaching a solid diamond to the association line.
B) Attaching a solid triangle to the association line.
C) Making the association line bolded.
D) Making the association line dashed
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck