C++ Programming MCQ Questions and Answers Pdf - 2

Question: 6

The return type of overloaded functions ___

(A) May or may not be same

(B) Must be same

(C) Must be different

(D) None of the given

Ans: A

May or may not be same

Question: 7

When overloading operators, only ___ operators can be overloaded, new operators cannot be created.

(A) Binary

(B) Similar

(C) Relevant

(D) Existing

Ans: D

Existing

Question: 8

During integral promotion, a float data type can be converted to ___

(A) Integer

(B) Double

(C) Char

(D) All the above

Ans: D

All the above

Question: 9

Which of the following operator can be overloaded?

(A) Sizeof ()

(B) ::

(C) Membership operator (.)

(D) Plus (+)

Ans: D

Plus (+)

Question: 10

Identify= the operator that is overloaded

(A) =

(B) –(Unary)

(C) –(Binary)

(D) Negative

Ans: B

–(Binary)

Related Questions