Exercise: Oops Concepts

Questions for: Oops Concepts

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: C
No answer description is available. Let's discuss.
cout is a/an __________ .
A:
operator
B:
function
C:
object
D:
macro
Answer: C
No answer description is available. Let's discuss.
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: D
No answer description is available. Let's discuss.
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: C
No answer description is available. Let's discuss.
Which of the following cannot be friend?
A:
Function
B:
Class
C:
Object
D:
Operator function
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz