Question No.1
Sender of the message does not
need to know the exact class of
receiver in ______ .
Please chose one
Abstraction
Polymorphism
Inheritance
none of the given
Question No.2
Target of a _____ function call is
determined at run time.
Please chose one
instance
virtual
operator
none of given
Question No.3
A function call is resolved at run - time
in _________ .
Please chose one
non - virtual member function
virtual member function
Both non - virtual member and virtual
member function .
None of given
Question No.4
Consider the code below , class
class1 { public: void func 1 (); }; class
class2 : protected class1 { }; Function
func1 of class1 is ____ in class 2 ,
Please chose one
public
protected
private
none of the given options
Question No.5
Consider the code below , class c 1 { };
class c2 : public c1 { }; class c 3 : public
c2 { }; Then c 2 is ,
Please chose one
Direct base class of c3
Direct child class of c 3
Direct base class of c1
None of these
Question No.6
A template provides a convenient way
to make a family of .
Please chose one
Variables and data members
Functions and classes
classes and exceptions
programs and algorithms
Question No.7
Consider the code below , class c 1 { };
class c2 : public c1 { }; class c 3 : public
c2 { }; Then c 1 is ,
Please chose one
Direct base class of c3
Direct child class of c 3
Direct base class of c2
Direct child class of c 2
Question No.8
User can make virtual table explicitly .
Please chose one
True
False
Question No.9
In type in depended function template
should be use where code and behavior
must be identical .
Please chose one
True
False
Question No.10
Consider the code below , class
class1 { protected : int i ; }; class
class2 : private class 1 { }; Then int
member i of class1 is ____ in class 2 ,
Please chose one
public
protected
private
none of the given options