Question # 1 of 10 ( Start time:
05 :19 :33 PM ) Total Marks: 1
Consider the code below , class
class1 { private : int i ; }; class class2 :
private class1 { }; Then int member i
of class 1 is
______ in class 2 ,
Select correct option :
public
protected
private
none of the given options
Question # 3 of 10 ( Start time:
05 :52 :30 PM ) Total Marks: 1
A class template may inherit from
another class template .
Select correct option :
True
False
Question # 4 of 10 ( Start time:
05 :52 :59 PM ) Total Marks: 1
A class D can be derived from a class
C, which is derived from a class B ,
which is derived from a class A .
Select correct option :
True
False
Question # 5 of 10 ( Start time:
05 :53 :40 PM ) Total Marks: 1
In c + + dynamic binding and
polymorphism will be achieved when
member function will be ____ .
Select correct option :
private
public
virtual
inline
Question # 6 of 10 ( Start time:
05 :54 :03 PM ) Total Marks: 1
A parent class can call constructor of
its child class through ,
Select correct option :
Its constructor initialization list
Its constructor body
Both from its constructor initialization
list or body
Can not call the constructor of its
child class
Question # 7 of 10 ( Start time:
05 :56 :07 PM ) Total Marks: 1
A template provides a convenient way
to make a family of
Select correct option :
variables and data members
functions and classes
classes and exceptions
programs and algorithms
Question # 8 of 10 ( Start time:
05 :57 :18 PM ) Total Marks: 1
Consider the code below , class
class1 { private : int i ; }; class class2 :
protected class 1 { }; Then int member i
of class 1 is
______ in class 2 ,
Select correct option :
public
protected
private
none of the given options
Question # 9 of 10 ( Start time:
05 :58 :38 PM ) Total Marks: 1
__________ Binding means that target
function for a call is selected at
compile time.
Select correct option :
Static
Dynamic
Automatic
None of given
Question # 10 of 10 ( Start time :
05 :59 :23 PM ) Total Marks: 1
“ Keyboard ” class is composed of
“ keys ” class. What will be the order of
execution of constructor of “ Keyboard ”
class and “ Keys”
class?
Select correct option :
First Constructor : :Keys .. then
Constructor :: Keyboard ..
First Constructor : : Keyboard .. then
Constructor :: Keys ..