(A) Minus (-) and = operators need to be overloaded
(B) the -= operator need to be overloaded explicitly
(C) the – and = operators need to be overloaded implicitly
(D) Non of given
Tag: Introduction to Programming
Which of the following is true while overloading operators?
(A) Precedence of an operator can be changed
(B) The parity (number of operands) can be changed
(C) No new operators can be created
(D) Associativity of an operator can be changed
Friend functions are __ of a class.
(A) Member functions
(B) Public member functions
(C) Private member functions
(D) Private member functions
The member functions of a class occupy __ region in memory for __ object(s) of class.
(A) separate, each
(B) common, all
(C) different, each
(D) different, all
new and delete are __ whereas malloc and free are __.
(A) Functions, operators
(B) Classes, operators
(C) Operators, functions
(D) Operators, classes
There is a pointer variable named ptr of type int then address of which type of variable the ptr will store in it?
(A) variable of type char
(B) variable of type short
(C) variable of type int
(D) variable of type double
Template class can not have static variables?
(A) True
(B) False
(C) Both
(D) None
In a group of nested loops, which loop is executed the most number of times?
(A) the outermost loop
(B) the innermost loop
(C) all loops are executed the same number of times
(D) cannot be determined without knowing the size of the loops