Top 1000+ Computer Knowledge Questions and Answers for Competitive Exams - 1

Question: 1

Each overloaded function must differ

(A) either by number of arguments or by data types of arguments

(B) by number of argument

(C) by type of arguments

(D) none of the given

Ans: A

either by number of arguments or by data types of arguments

Question: 2

When binary operators are overloaded, _____

(A) both the right and left objects must be object of the relevant class

(B) the right hand object must be an object of the relevant class

(C) the left hand object must be an object of the relevant class

(D) none of the given

Ans: C

the left hand object must be an object of the relevant class

Question: 3

A _____ is a set of mn numbers arranged in the form of a rectangular array of m rows and n columns.

(A) array

(B) row

(C) determinant

(D) matrix

Ans: D

matrix

Question: 4

In an example int *a; which one is the pointer variable?

(A) int

(B) *

(C) a

(D) ;

Ans: C

a

Question: 5

When overloading operators, the overloaded operator must have

(A) all the operands of C++ data type

(B) atleast one operand of user defined type

(C) all the operands of user defined type

(D) none of the given

Ans: B

atleast one operand of user defined type

Related Questions