Deck 14: Advanced C++ Topics, and Overview of UML
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
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/25
Play
Full screen (f)
Deck 14: Advanced C++ Topics, and Overview of UML
1
The __________ Modeling Language (UML) represents the unification of earlier object-oriented design modeling techniques.
Unified
2
UML defines __________ types of diagrams.
A) 2
B) 6
C) 10
D) 12
A) 2
B) 6
C) 10
D) 12
12
3
The UML __________ diagram shows classes and their relationships.
class
4
In C++ a class may not be a member of a namespace.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
In UML notation italics indicate __________ classes.
A) abstract
B) virtual
C) private
D) static
A) abstract
B) virtual
C) private
D) static
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
C++ has a specific syntactic element called an interface.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
We use the interface notation with the word __________ to show that classes have common requirements.
A) abstraction
B) concept
C) generalization
D) idea
A) abstraction
B) concept
C) generalization
D) idea
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Suppose the vector, deque, and list all must meet the requirements for a sequence. From this statement, we may conclude that the __________ is a concept.
A) vector
B) deque
C) list
D) sequence
A) vector
B) deque
C) list
D) sequence
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
The __________ of a class are the data fields.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which of the following versions of
String DEFAULT_LT_MAN
Represents a static attribute in a class diagram?
A) string DEFAULT_LT_MAN
B) string DEFAULT_LT_MAN.
C) String DEFAULT_LT_MAN
D) string DEFAULT_LT_MAN .
String DEFAULT_LT_MAN
Represents a static attribute in a class diagram?
A) string DEFAULT_LT_MAN
B) string DEFAULT_LT_MAN.
C) String DEFAULT_LT_MAN
D) string DEFAULT_LT_MAN .
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
The UML standard specifies that the attribute type be specified following the name and separated by a(n) __________.
A) dash
B) asterisk
C) colon
D) exclamation mark
A) dash
B) asterisk
C) colon
D) exclamation mark
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
In the context of a UML class diagram, a minimum representation of an operation includes the function __________ followed by a pair of parentheses.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
UML uses the term __________ to describe the relationship between a base class and its derived classes.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
A class that is declared within the body of another class is called an inner class or __________ class.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
In the UML notation for an association, the association name, multiplicities, and roles are all mandatory.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
__________ represents the number of objects of a class that are related to another class.
A) Multiplicity
B) Variety
C) Cardinality
D) Quantity
A) Multiplicity
B) Variety
C) Cardinality
D) Quantity
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Multiplicity may only be represented by a single number.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Generally, if navigation is possible from ClassA to ClassB, then ClassA will contain a(n) __________ to ClassB.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
An invocation of a(n) __________ class is indicated by including the actual parameters inside a pair of angle brackets (less-than and greater-than) symbols following the name.
A) derived
B) primary
C) basic
D) generic
A) derived
B) primary
C) basic
D) generic
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
The ordering of objects across the horizontal axis of a sequence diagram is insignificant.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
An object in a sequence diagram is represented by a(n) __________ with the name of the object underlined.
A) triangle
B) rectangle
C) diamond
D) circle
A) triangle
B) rectangle
C) diamond
D) circle
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
A(n) __________ line in a sequence diagram is a dashed line that begins when the object is created and ends when the object is destroyed.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
In a sequence diagram, __________ bars represent the time during which the object is responding to a given message.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
In a sequence diagram, the name of the message sent by an object is shown above the ________.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
In a UML diagram, __________ are free-form text enclosed in a rectangle with the upper right corner folded down.
A) messages
B) parameters
C) names
D) notes
A) messages
B) parameters
C) names
D) notes
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck