Top 80+ Solved Object Oriented Programming In cpp MCQ Questions Answer

From 76 to 87 of 87

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

  • c. do-while

Q. In a C language ‘3’ represents

a. a digit

b. an integer

c. a character

d. a word

  • a. a digit

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

  • c. c++ programs are interpreted by an interpreter

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)

  • c. [. (array access 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

  • 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)

  • d. ?: (conditional operator)

Q. Value of a in a = (b = 5, b + 5); is

a. junk value

b. syntax error

c. 5

d. 10

  • b. syntax error

Q. How to declare operator function?

a. operator operator sign

b. operator

c. operator sign

d. none of the mentioned

  • a. operator operator sign

Q. xample obj = new Example (1,2,3);

a. constructor 2

b. constructor 4

c. constrcutor 1

d. type mismatch error

  • b. constructor 4
Subscribe Now

Get All Updates & News