Question # 1 of 10 ( Start time:
07 :45 :58 PM ) Total Marks: 1
A template argument is preceded by
the keyword ________ .
Select correct option :
vector
class
template
type *
Question # 2 of 10 ( Start time:
07 :46 :49 PM ) Total Marks: 1
The Specialization pattern after the
name says that this specialization is to
be used for every_____.
Select correct option :
data type
meta types
virtual types
pointers type
Question # 3 of 10 ( Start time:
07 :47 :21 PM ) Total Marks: 1
Select correct line of code for
inheritance relationship between
“ Nationality ” class and “ Foreigner ”
class. “ Nationality ” is parent class
while “ Foreigner ” is child class.
Select correct option :
class Foreigner : public Nationality
class Nationality : public Foreigner
class Foreigner :: public Nationality
class Nationality :: public Foreigner
Question # 4 of 10 ( Start time:
07 :48 :25 PM ) Total Marks: 1
In _____________ sub- object has a life
that is NOT dependant on the life of
its master class.
Select correct option :
Aggregation
Composition
Inheritance
Association KKK
Question # 5 of 10 ( Start time:
07 :49 :15 PM ) Total Marks: 1
Which will be the Primary task or tasks
of generic programming ?
Select correct option :
Categorize the abstractions in a domain
into concepts
Implement generic algorithms based on
the concepts
Build concrete models of the concepts
All of given
Question # 6 of 10 ( Start time:
07 :50 :07 PM ) Total Marks: 1
Sender of the message does not need
to know the exact class of receiver
in ________ .
Select correct option :
Abstraction
Polymorphism
Inheritance
none of the given
Question # 7 of 10 ( Start time:
07 :50 :48 PM ) Total Marks: 1
A class can inherit from more then one
class is called .
Select correct option :
Simple inheritance
Multiple inheritances
Single inheritance
Double inheritance
Question # 8 of 10 ( Start time:
07 :51 :13 PM ) Total Marks: 1
In type independed function template
should be use where code and behavior
must be identical .
Select correct option :
True
False KKK
Question # 9 of 10 ( Start time:
07 :51 :44 PM ) Total Marks: 1
To make a pure virtual , we ineed to
gve______ after ( ) of this function .
Select correct option :
= 0 ;
=!;
null ;
none of the given .
Question # 10 of 10 ( Start time :
07 :52 :07 PM ) Total Marks: 1
Derived class can inherit from public
base class as well as private and
protected base classes
Select correct option :
True
False