Question No. 1
Methodologies to the development of
reusable software relate to _ _______ .
Select correct option :
Structure programming
procedural programming
generic programming
None of the given
Question No. 2
function template must have a
parameter.
Select correct option :
True
False
Question No. 3
The default inheritance mode is ,
Select correct option :
Public inheritance
Protected inheritance
Private inheritance
None of these options
Question No. 4
Two functions with same names ,
parameters and return type can exist
in ,
Select correct option :
Function overloading
Function overriding
Operator overloading
None of these options
Question No. 5
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 No. 6
Virtual functions allow you to
Select correct option :
create an array of type pointer - to-
base class that can hold pointers to
derived classes .
create functions that can never be
accessed .
group objects of different classes so
they can all be accessed by the same
function code .
use the same function call to execute
member functions of objects from
different classes .
Question No. 7
User can make virtual table explicitly .
Select correct option :
True
False
Question No. 8
In order to define a class template the
first line of definition must be :
Select correct option :
template < typename T >
typename < template T >
Template Class < ClassName >
Class < Template T >
Question No. 9
Consider the following statements: 1 )
int iArray [ 5 ]; 2 ) int * pArr = iArray ;
Select correct option :
These statements will compile
successfully
Error in first statement
Error in second statement
None of given options