How many types of templates?
a) one
b) two
c) three
d) four
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
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
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
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
How many parameters are legal for non-type templates?
a) 1
b) 2
c) 3
d) 4