Contents

Why we use:: template-template parameter?
a) binding                             
b) rebinding
c) both a & b                       
d) reusing

c

Which parameter is legal for non-type template?
a) pointer to member       
b) object
c) class                                  
d) base class

a

Which of the following is used for generic programming?
a) modules                           
b) templates
c) virtual functions             
d) abstract classes

b

What can be passed by non-type template parameters during compile time?
a) int                                      
b) float
c) constant expression 
d) none of these

c

In how many ways templates concept can be used?
a) 1                        
b) 2                        
c) 3                        
d) 4

b

Explanation: function template, class template


Which value is placed in the base class?
a) default type values
b) derived values
c) both a & b                                       
d) none of these

a