Programming - Relationship b/w Objects
You Are Here :: Home > JAVA > Relationship b/w Objects - General Questions
19. |
________________ is a special form of aggregation.
|
A. |
Association |
B.
|
Aggregation |
C.
|
Composition
|
D.
|
Abstraction
|
|
Answer: Option C
Explanation:
Composition is a special form of aggregation. |
|
20. |
Aggregation is also called a _______________ relationship.
|
A. |
"Is-a" |
B.
|
"That-a" |
C.
|
"Was-a"
|
D.
|
“Has-a”
|
|
Answer: Option D
Explanation:
Aggregation is also called a “Has-a” relationship. |
|
21. |
_________________ is specifying the framework and hiding the implementation level information.
|
A. |
Abstraction |
B.
|
Polymorphism |
C.
|
Encapsulation
|
D.
|
Inheritance
|
|
Answer: Option A
Explanation:
Abstraction is specifying the framework and hiding the implementation level information. |
|
22. |
__________________ reduces the complexity by hiding low level details.
|
A. |
Data binding |
B.
|
Abstraction |
C.
|
Encapsulation
|
D.
|
Inheritance
|
|
Answer: Option B
Explanation:
Abstraction reduces the complexity by hiding low level details. |
|
23. |
Generalization is also called a ______________ relationship.
|
A. |
"Has-a" |
B.
|
"Was-a" |
C.
|
“Is-a”
|
D.
|
None of these
|
|
Answer: Option C
Explanation:
Generalization is also called a “Is-a” relationship. |
|
24. |
______________ is a relationship between the blueprint class and the object containing its respective implementation level details.
|
A. |
Abstraction |
B.
|
Polymorphism |
C.
|
Encapsulation
|
D.
|
Realization
|
|
Answer: Option D
Explanation:
Realization is a relationship between the blueprint class and the object containing its respective implementation level details. |
|
« prev
next »