Programming - Relationship b/w Objects
You Are Here :: Home > JAVA > Relationship b/w Objects - General Questions
13. |
An ____________ is an encapsulated completely-specified data aggregate containing attributes and behavior
|
A. |
object |
B.
|
Class |
C.
|
Variable
|
D.
|
Method
|
|
Answer: Option A
Explanation:
An object is an encapsulated completely-specified data aggregate containing attributes and behavior |
|
14. |
_________________ protects the implementation from interference by other objects and defines approved interface
|
A. |
Data binding |
B.
|
Data hiding |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
Data hiding protects the implementation from interference by other objects and defines approved interface |
|
15. |
____________ with same characteristics are called instances of a class
|
A. |
Method |
B.
|
Class |
C.
|
Objects
|
D.
|
Variables
|
|
Answer: Option C
Explanation:
Objects with same characteristics are called instances of a class |
|
16. |
________________ is a relationship between two objects.
|
A. |
Aggregation |
B.
|
Abstraction |
C.
|
Encapsulation
|
D.
|
Association
|
|
Answer: Option D
Explanation:
Association is a relationship between two objects. |
|
17. |
__________________ defines the multiplicity between objects.
|
A. |
Association |
B.
|
Abstraction |
C.
|
Encapsulation
|
D.
|
Aggregation
|
|
Answer: Option A
Explanation:
association defines the multiplicity between objects. |
|
18. |
________________ is a special form of association.
|
A. |
Association |
B.
|
Aggregation |
C.
|
Encapsulation
|
D.
|
Abstraction
|
|
Answer: Option B
Explanation:
Aggregation is a special form of association. |
|
« prev
next »