Deck 7: Understanding More Complex Requirements Models With Generalizationspecialization and Whole-Part Hierarchies
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
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/27
Play
Full screen (f)
Deck 7: Understanding More Complex Requirements Models With Generalizationspecialization and Whole-Part Hierarchies
1
The generalization/specialization hierarchy can lead to implementation problems if not composed of relatively stable or __________ classes.
Constant
2
Which of the following is NOT true concerning generalization/specialization hierarchies?
A) A class might inherit attributes and methods from multiple classes.
B) They show a hierarchy of classes and subclasses that lead from the general to the specific.
C) They show a hierarchy of classes representing a collection of parts.
D) A class mighty inherit attributes and methods from an abstract class.
A) A class might inherit attributes and methods from multiple classes.
B) They show a hierarchy of classes and subclasses that lead from the general to the specific.
C) They show a hierarchy of classes representing a collection of parts.
D) A class mighty inherit attributes and methods from an abstract class.
C
3
Which of the following is TRUE concerning generalization/specialization hierarchies?
A) They show a hierarchy of classes representing a collection of parts.
B) They show a hierarchy of classes and subclasses that lead from the general to the specific.
C) They might be defined as a "contains" relationship.
D) They might be defined as a "includes" relationship.
A) They show a hierarchy of classes representing a collection of parts.
B) They show a hierarchy of classes and subclasses that lead from the general to the specific.
C) They might be defined as a "contains" relationship.
D) They might be defined as a "includes" relationship.
B
4
Which of the following is NOT true concerning whole-part hierarchies?
A) They might be defined as a "includes" relationship.
B) They might be defined as a "contains" relationship.
C) They include particularly strong relationships.
D) They might be defined as a "is-a" relationship.
A) They might be defined as a "includes" relationship.
B) They might be defined as a "contains" relationship.
C) They include particularly strong relationships.
D) They might be defined as a "is-a" relationship.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
5
The symbol for a whole-part relationship is a _______________?
A) diamond on the line connecting the two classes
B) hollow circle on the line connecting the two classes
C) filled circle on the line connecting the two classes
D) triangle on the line connecting the two classes
A) diamond on the line connecting the two classes
B) hollow circle on the line connecting the two classes
C) filled circle on the line connecting the two classes
D) triangle on the line connecting the two classes
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
6
Defining a(n) __________ relationship in a class diagram can increase the clarity and precision of the model.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
7
The generalization/specialization hierarchy works best when an object in a special class will always remain a __________ of that class.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
8
A(n) ___________ hierarchy shows object relationships between an object in one class and objects in other classes that make up its "parts".
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
9
The terms aggregation and composition are used for __________ relationships in UML.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
10
The generalization/ specialization hierarchy shows a hierarchy of classes and subclasses that lead from the __________ to the __________.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) __________ hierarchy allows one class to inherit attributes and methods from another.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
12
A(n) __________ class exists only to allow subclasses to inherit from it.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is NOT described by scenarios?
A) User's interaction with the system
B) Use cases
C) Events that occur in the system
D) class diagrams
A) User's interaction with the system
B) Use cases
C) Events that occur in the system
D) class diagrams
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
14
Use cases and scenarios can be used to clarify system requirements.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is TRUE concerning whole-part hierarchies?
A) They include particularly strong relationships.
B) They are organized into superclasses and subclasses.
C) They define an inheritance relationship.
D) They are defined by what they do not contain.
A) They include particularly strong relationships.
B) They are organized into superclasses and subclasses.
C) They define an inheritance relationship.
D) They are defined by what they do not contain.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
16
A whole-part hierarchy allows one class to inherit attributes and methods from another.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
17
A generalization hierarchy shows object relationships between an object in one class and objects in other classes that make up its "parts".
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
18
A _______ on the line indicates a whole-part relationship.
A) triangle
B) square
C) circle
D) diamond
A) triangle
B) square
C) circle
D) diamond
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
19
_________________ occurs when the objects in a class inherit attributes and services form multiple classes.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
20
A possible solution to problems introduced in multiple inheritance would be to model the classes according to the ___________ they play.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
21
Sometimes a general class includes objects and is also specialized into subclasses that also include objects.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
22
An important aspect of the object-oriented approach is the process of organizing the information system into a set of hierarchies.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
23
A problem with generalization hierarchies is that they tend to increase redundancy in the model.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
24
In multiple inheritance, it is preferred to be able to trace superclasses back up the hierarchy to a common class.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
25
Multiple inheritance occurs when objects in the class inherit attributes and services from multiple classes.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
26
Several object- oriented programming languages do not allow multiple inheritance.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck
27
A relationship can be optional.
Unlock Deck
Unlock for access to all 27 flashcards in this deck.
Unlock Deck
k this deck