Top 150+ Solved Object Oriented Programming with C++ (OOP in C++) MCQ Questions Answer

From 106 to 120 of 134

Q. The operators can’t be overloaded

a. Binary operators

b. Unary operators

c. Ternary operator

d. None

  • c. Ternary operator

Q. Which of the following is not correct

a. Only existing operator can be overloaded

b. The overloaded operator must have at least one operand

c. We can change the basic meaning of the operator

d. Overloaded operators follow the syntax rule of original operator

  • c. We can change the basic meaning of the operator

Q. The operator we cannot use friend function

a. ?

b. Sizeof

c. ::

d. []

  • d. []

Q. The variable that contains the address of constant or variable

a. Function

b. Array

c. pointer

d. structure

  • c. pointer

Q. The indirect operator is

a. &

b. *

c. ::

d. :?

Q. The memory management operator in c++

a. new &delete

b. malloc

c. calloc

d. free

  • a. new &delete

Q. The pointer refers to an object that has called the member function currently

a. this

b. address

c. virtual function

d. none

  • a. this

Q. Conversion of data type is called

a. self referencing

b. type casting

c. virtual function

d. abstract class

  • b. type casting

Q. The function that act as an interface to base & derived class

a. function overloading

b. virtual function

c. constructor

d. friend

  • b. virtual function

Q. The keyword to convert constant into variable

a. Const_cast

b. reinterpret_cast

c. static_cast

d. implicit

  • a. Const_cast

Q. The keyword to convert pointer into non pointer & non pointer into pointer

a. Const_cast

b. reinterpret_cast

c. static_cast

d. implicit

  • b. reinterpret_cast

Q. Treating the address of the object of the derived class as the address of the base class means

a. Up casting

b. down casting

c. early binding

d. late binding

  • a. Up casting

Q. The empty virtual function are called

a. pure /donothing

b. virtual table

c. polymorphism

d. virtual base class

  • a. pure /donothing

Q. A stream of byte that is the interface between IO and IO devices

a. Streams

b. class

c. object

d. file

  • a. Streams

Q. The class that derived from standard library ios contain input functions

a. Ios

b. iostream

c. istream

d. ostream

  • c. istream
Subscribe Now

Get All Updates & News