Loading, please wait...

C++ OOPS Multiple Choice Questions And Answers

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

16. Which of the following shows polymorphism?

  • int fun(int), int fun(float)
  • int fun(int, int), float fun(int)
  • float fun(int), float func(float)
  • float fun(double), int fun(int, float)

17. Modularity means

  • Sub dividing programs into sub small independent parts
  • Wrapping data into single unit
  • Hiding some parts of the code
  • Overriding some parts of the program

18. Which operator is overloaded for cout operation.

  • >>
  • >
  • <<
  • <<<

19. What is the ouput of the following code?

#include using namespace std; class first { static int i; int j; }; int first::i; int main() { cout << sizeof(first); return 0; }
  • 4
  • 2
  • 1
  • 8

20. Assume the output

using namespace std; class Base { public: Base1() { cout << " Base's constructor called" << endl; } }; class Derived: public Base { public: Derived() { cout << "Derived's constructor called" << endl; } }; int ma
  • Derived's constructor called Base's constructor called
  • Base's constructor called Derived's constructor called
  • Derived's constructor called
  • Base's constructor called