Polymorphism MCQ Questions and Answers - 2

Question: 6

While invoking functions, if the C++ compiler does not find the exact match of the function call statement then ___

(A) Looks for the next nearest match

(B) Deletes the function

(C) Generates an error

(D) It will ignore the function call

Ans: A

Looks for the next nearest match

Question: 7

The functionality of operator like ‘+’ can be extended using ___

(A) Operator precedence

(B) Operator overloading

(C) Operator definition

(D) None of the given

Ans: B

Operator overloading

Question: 8

Binary operators overloaded through a member function take one ____ argument.

(A) Default

(B) Complete

(C) Implicit

(D) Explicit

Ans: D

Explicit

Question: 9

The operator function must be ____

(A) A member function

(B) A friend function

(C) Either member or friend function

(D) None of the given

Ans: C

Either member or friend function

Question: 10

____ Promotions are purely compiler oriented.

(A) Constant

(B) Integral

(C) Floating point

(D) Character

Ans: B

Integral

Related Questions