Question # 1 of 10 ( Start time:
02 :40 :05 PM ) Total Marks : 1
If we are create array of objects
through new operator, then
Select correct option :
We can call overloaded constructor
through new
We can ’ t call overloaded constructor
through new
We can call default constructor
through new
None of the given
Question # 2 of 10 ( Start time:
02 :40 :58 PM ) Total Marks : 1
To initialize an array of objects , only
_____________ will be called
Select correct option :
Defualt Constructor
Overloaded Constructor
Default Object
None of the above
Question # 3 of 10 ( Start time:
02 :41 :59 PM ) Total Marks : 1
Constant data members can be
initialized by using :
Select correct option :
Constant Member Function
Non- constant Member Function
Member Initializer List
Class
Question # 4 of 10 ( Start time:
02 :43 :14 PM ) Total Marks : 1
Which of the following operator (s ) take
(s ) one or no argument if overloaded ?
Select correct option :
+ +
*
%
All of the given choices
Question # 5 of 10 ( Start time:
02 :44 :36 PM ) Total Marks : 1
Consider the call given below of an
overloaded operator " + " ,
Rational _ number _ 1 +
Rational _ number _ 2 Where
Rational _ number _ 1 and
Rational _ number _ 2 are the two objects
of Rational _ number class (a user
defined class ). Identify which of the
above two objects
will be passed as an argument to the
overloaded operator function ?
Select correct option :
Rational _ number _ 1
None of the given choices
Both Rational _ number _ 1 &
Rational _ number _ 2
any of the two objects , randomly
Question # 6 of 10 ( Start time:
02 :46 :07 PM ) Total Marks : 1
Associativity can change due to
operator overloading.
Select correct option :
True
False
Question # 7 of 10 ( Start time:
02 :47 :02 PM ) Total Marks : 1
Consider the following code segment :
class test { int a ; int b ; int c; public:
test() :b (5 ) ,c( a ),a ( b ) {} } What will the
value of
variables a , b , and c after instantiating
an object of above class ?
Select correct option :
5 , 5 , 5
5 , Junk value , 5
Junk value , 5 , Junk value
Junk value , 5 , 5
Question # 8 of 10 ( Start time:
02 :48 :31 PM ) Total Marks : 1
Operator overloading is
Select correct option :
making C + + operators work with
objects .
giving C + + operators more than they
can handle.
giving new meanings to existing
Class members .
making new C + + operators.
Question # 10 of 10 ( Start time :
02 :49 :43 PM ) Total Marks : 1
Copy constructor is called when :
Select correct option :
An object is created .
An object is created in term of pre
existing object.
An array of objects is created .
An object is deleted .