Top 80+ Solved Object Oriented Programming In cpp MCQ Questions Answer
Q. Which looping process is best used when the number of iterations is known?
a. for
b. while
c. do-while
d. all looping processes require that the iterations be known
Q. Which of the following is the most common way of implementing C++?
a. c++ programs are directly compiled into native code by a compiler
b. c++ programs are first compiled to intermediate code by a compiler and then executed by a virtual machine
c. c++ programs are interpreted by an interpreter
d. a c++ editor directly compiles and executes the program
Q. Which of the following operators can be implemented as a nonmember operator?
a. - (addition operator)
b. () (function call operator)
c. [. (array access operator)
d. + (addition operator)
Q. What is the implicit pointer that is passed as the first argument for nonstatic member functions?
a. ‘self’ pointer
b. std::auto_ptr pointer
c. ‘myself’ pointer
d. ‘this’ pointer
Q. Which of the following operators can be overloaded?
a. . (dot or member access operator)
b. & (address-of operator)
c. sizeof operator
d. ?: (conditional operator)
Q. Which of the following is not a valid conditional inclusions in preprocessor directives
a. #ifdef
b. #ifundef
c. #endif
d. #elif
Q. How to declare operator function?
a. operator operator sign
b. operator
c. operator sign
d. none of the mentioned
Q. xample obj = new Example (1,2,3);
a. constructor 2
b. constructor 4
c. constrcutor 1
d. type mismatch error