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 

26. How run-time polymorphisms are implemented in C++?

  • Using Virtual function
  • Using Templates
  • Using Inheritance
  • Both 1 and 3

27. Which of the following is used for comments?

  • //comment
  • /*commont*/
  • Both 1 and 2
  • #comment

28. Concept used for late binding is

  
  • Friend Function
  • Virtual Function
  • Static Function
  • Inline Function

29. What is the ouput of the following code?

int main() { int a=10; cout<<a++; return 0; }
  • 10
  • 11
  • 0
  • Error

30. What is the ouput of the following code?

int main() { int a, b=20; a = 90/b; return 0; }
  • 4
  • 4.5
  • 4
  • Error