Programming - C++ Language
You Are Here :: Home > C++ Language > Oops - General Questions
55. |
Which of the following concepts of OOPS means exposing only necessary information to client?
|
A. |
Encapsulation |
B.
|
Abstraction |
C.
|
Data hiding
|
D.
|
Data binding
|
|
Answer: Option C
Explanation:
|
56. |
Why reference is not same as a pointer?
|
A. |
A reference can never be null. |
B.
|
A reference once established cannot be changed. |
C.
|
Reference doesn't need an explicit dereferencing mechanism.
|
D.
|
All of the above.
|
|
Answer: Option D
Explanation:
|
57. |
cout is a/an __________ .
|
A. |
operator |
B.
|
function |
C.
|
object
|
D.
|
macro
|
|
Answer: Option C
Explanation:
|
58. |
Which of the following concepts provides facility of using object of one class inside another class?
|
A. |
Encapsulation |
B.
|
Abstraction |
C.
|
Composition
|
D.
|
Inheritance
|
|
Answer: Option C
Explanation:
|
59. |
Which of the following is an abstract data type?
|
A. |
int |
B.
|
double |
C.
|
string
|
D.
|
Class
|
|
Answer: Option D
Explanation:
|
60. |
Which of the following concepts means adding new components to a program as it runs?
|
A. |
Data hiding |
B.
|
Dynamic typing |
C.
|
Dynamic binding
|
D.
|
Dynamic loading
|
|
Answer: Option D
Explanation:
|
« prev
next »