C++ Programming - OOPS Concepts

Exercise :: OOPS Concepts - General Questions

  • OOPS Concepts - General Questions
21. 

Which of the following is correct about class and structure?

A. class can have member functions while structure cannot.
B. class data members are public by default while that of structure are private.
C. Pointer to structure or classes cannot be declared.
D. class data members are private by default while that of structure are public by default.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

22. 

Which of the following concepts means wrapping up of data and functions together?

A. Abstraction
B. Encapsulation
C. Inheritance
D. Polymorphism

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

23. 

Which of the following concepts means waiting until runtime to determine which function to call?

A. Data hiding
B. Dynamic casting
C. Dynamic binding
D. Dynamic loading

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

24. 

How "Late binding" is implemented in C++?

A. Using C++ tables
B. Using Virtual tables
C. Using Indexed virtual tables
D. Using polymorphic tables

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

25. 

Which of the following operator is overloaded for object cout?

A. >>
B. <<
C. +
D. =

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.