Contents

How many types of templates?
a) one    
b) two    
c) three  
d) four

b

Explanation: function templates, class templates


Which of the following templates are used to define generic definition of function?
a) function template
b) class template
c) method template              
d) none of these

a

Which of the following templates are used to define generic definition of classes?
a) function template          
b) class template
c) method template              
d) none of these

b

Which of the following best defines the syntax for template function?
a) template return_type                                    
b) function_name(parameters)
c) both a & b                       
d) none of these

c

Templates are abstract recipe for producing a concrete code, and it is used for……
a) producing functions                                      
b) producing classes
c) nothing                             
d) both a & b

d

How many parameters are legal for non-type templates?
a) 1                        
b) 2                        
c) 3                        
d) 4

d