UML Relationships - Quiz Explanation
The answers you selected are indicated below, along with text that explains the correct answers.
1.
What is the definition of generalize?
Please select the best answer.
A.
To assemble a set of part objects to create a new whole object
B.
To create a shared definition for common properties of a set of similar objects
C.
To identify the properties that distinguish similar objects
To identify the properties that distinguish similar objects
D.
To identify the elements that define an object using the problem context, level of detail, and time frame
The correct answer is B.
Generalize means to create a shared definition for common properties of a set of similar objects. A is incorrect because it describes what it means to aggregate objects. C is incorrect because it describes what it means to specialize. D is incorrect because it describes what it means to abstract an object.
2.
What is the definition of abstraction?
Please select the best answer.
A.
To identify the properties that distinguish similar objects
B.
To create a shared definition for common properties of a set of similar objects
C.
To represent a real object in a useful manner for a specific problem
D.
To assemble a set of part objects to create a new whole object
The correct answer C.
Abstraction means to represent a real object in a useful manner for a specific problem.
A is incorrect because it describes what it means to specialize objects. B is incorrect because it describes what it means to generalize. D is incorrect because it describes what it means to create an aggregate.
3.
What is the definition of coupling?
Please select the best answer.
A.
To measure the dependency between objects
B.
To measure the degree to which the elements of an object support the same purpose
C.
To assemble a set of part objects to create a new whole object
D.
To create a shared definition for common properties of a set of similar objects
The correct answer is A.
Coupling is a measure of the dependency between objects. B is incorrect because it describes cohesion. C is incorrect because it describes what it means to create an aggregate object. D is incorrect because it describes what it means to generalize.
4.
What is the definition of cohesion?
Please select the best answer.
A.
To identify the elements that define an object using the problem context, level of detail, and time frame
B.
To measure the dependency between objects
C.
To create a shared definition for common properties of a set of similar objects
D.
To measure the degree to which elements of an object support the same purpose
The correct answer is D.
Cohesion is a measure of the degree to which elements of an object support the same purpose. A is incorrect because it describes what it means to create an abstraction. B is incorrect because it describes coupling. C is incorrect because it describes what it means to generalize.
5.
What is the definition of aggregation?
Please select the best answer.
A.
An object defined as an assembly of smaller part objects that participate for some or all of their existence in the assembly
B.
To create a shared definition for common properties of a set of similar objects
C.
To identify the properties that distinguishes similar objects
D.
To identify the elements that define an object using the problem context, level of detail, and time frame
The correct answer is A.
An aggregation is an object defined as an assembly of smaller part objects that participate for some or all of their existence in the assembly. B is incorrect because it describes what it means to create a generalization. C is incorrect because it describes the process of specializing. D is incorrect because it describes what it means to create an abstraction.
6.
Which factors affect abstraction?
Please select the best answer.
A.
Common properties and unique properties
B.
Parts and an assembly
C.
Context, time frame, and level of detail
D.
Purpose and interface
The correct answer is C.
A is incorrect because common and unique properties are used to create a generalization hierarchy. B is incorrect because parts and assembly are used to describe an aggregate or composite object. D is incorrect because purpose and interface define an encapsulated view of an object.
7.
A composite object is
Please select the best answer.
A.
An object defined as an assembly of smaller part objects that participate for some or all of their existence in the assembly
B.
An object defined as an assembly of smaller part objects that exist only as long as the assembly is intact
C.
An object defined in terms of its purpose and interface only, excluding or hiding information about the implementation of the object
D.
An object defined in terms of its context, level of detail, and time frame
The correct answer is B.
A is incorrect because it describes an aggregate object. Note the difference in the participation of the part objects. C is incorrect because it describes encapsulation. D is incorrect because it describes the criteria used to develop a quality abstraction.