Question # 1 of 10 ( Start time: 09 : 38 :
26 PM ) Total Marks : 1
Consider the code below , class c 1 { };
class c2 : public c1 { }; class c 3 : public
c2 { }; Then c 2 is ,
Select correct option :
Direct base class of c3
Direct child class of c 3
Direct base class of c1
None of these
Question # 2 of 10 ( Start time: 09 : 39 :
28 PM ) Total Marks : 1
In private inheritance derived class
pointer can be assigned to base class
pointer in ,
Select correct option :
Main function
In derived class member and friend
functions
In base class member and friend
functions
None of the given options
Question # 3 of 10 ( Start time: 09 : 40 :
31 PM ) Total Marks : 1
Consider the code below , class c 1 { };
class c2 : public c1 { }; class c 3 : public
c2 { }; Then c 3 is ,
Select correct option :
Direct base class of c1
Direct child class of c 1
Direct base class of c2
Direct child class of c 2
Question # 4 of 10 ( Start time: 09 : 41 :
25 PM ) Total Marks : 1
Select correct line of code for
composition relationship between
“ Person ” class and “ Nationality ” class.
Select correct option :
class Nationality { Person p ;};
class Person { Nationality c; };
class Person : private Nationality
class Nationality : private Person
Question # 5 of 10 ( Start time: 09 : 42 :
19 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 # 6 of 10 ( Start time: 09 : 43 :
02 PM ) Total Marks : 1
“ Keyboard ” class is composed off
“ keys ” class. What will be the order of
execution of destructor of “ Keyboard ”
class and “ Keys” class ?
Select correct option :
First Detructor:: Keys. . Second
Destructor : :Keyboard . .
First Destructor : : Keyboard .. Second
Destructor : : Keys. .
Question # 7 of 10 ( Start time: 09 : 43 :
59 PM ) Total Marks : 1
A function call is resolved at run - time
in _ _ _ _ _ _ _ _ _ _ _
Select correct option :
non - virtual member function
virtual member function
Both non - virtual member and virtual
member function .
None of given
Question # 8 of 10 ( Start time: 09 : 44 :
44 PM ) Total Marks : 1
In c + + , compiler can generate which of
the following operators’ code ,
Select correct option :
= =
=
&
& &
A function template must have a
parameter.
True
False
Question # 10 of 10 ( Start time : 09 :
46 :57 PM ) Total Marks: 1
Consider the code below , class
class1 { private : void func 1 ( ); }; class
class2 : private class 1 { }; Function
func1 of class1 is _ _ _ _ _ _ in class2 ,
Select correct option :
public
protected
private
none of the given options