Final Term
1.

Which of the following causes run time binding?

A.  Declaring object of abstract class B.  Declaring pointer of abstract class C.  

Declaring overridden methods as non-virtual 

D.  None of the given
2.

Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?

A.  

Templates 

B.  Overloading C.  Data hiding D.  Encapsulation
3.

A copy constructor is invoked when

A.  a function do not returns by value. B.  

an argument is passed by value.

C.  a function returns by reference. D.  an argument is passed by reference.
4.

Like template functions, a class template may not handle all the types successfully.

A.  

True

B.  False
5.

A class template may inherit from another class template.

A.  

True

B.  False
6.

By default the vector data items are initialized to ____

A.  

B.  

0.0

C.  1 D.  null
7.

In Private -------------- only member functions and friend classes or functions of a derived class can convert pointer or reference of derived object to that of parent object

A.  specialization B.  

inheritance

C.  abstraction D.  composition
8.

Which of the following is/are advantage[s] of generic programming?

A.  Reusability B.  Writability C.  Maintainability D.  

All of given

9.

Template functions use _________ than ordinary functions.

A.  Greater Memory B.  Lesser Memory C.  Equal Memory D.  None of the given options
10.

Non Template Friend functions of a class are friends of ________instance/s of that class.

A.  

All

B.  One specific C.  All instances of one date type D.  None of the given options