OOPS
August 29, 2024OOPS
August 29, 2024OOPS
|
Question 66
|
Which of the following is not correct (in C++) ?
|
Class templates and function templates are instantiated in the same way
|
|
|
Class templates differ from function templates in the way they are initiated
|
|
|
Class template is initiated by defining an object using the template argument
|
|
|
Class templates are generally used for storage classes
|
|
|
None of the above
|
Question 66 Explanation:
(1) TRUE: Class templates and function templates are instantiated in the same way
(2) FALSE: Class templates differ from function templates in the way they are initiated
(3) FALSE: Class template is initiated by defining an object using the template argument
(4)FALSE: Class templates are generally used for storage classes
(2) FALSE: Class templates differ from function templates in the way they are initiated
(3) FALSE: Class template is initiated by defining an object using the template argument
(4)FALSE: Class templates are generally used for storage classes
Correct Answer: E
Question 66 Explanation:
(1) TRUE: Class templates and function templates are instantiated in the same way
(2) FALSE: Class templates differ from function templates in the way they are initiated
(3) FALSE: Class template is initiated by defining an object using the template argument
(4)FALSE: Class templates are generally used for storage classes
(2) FALSE: Class templates differ from function templates in the way they are initiated
(3) FALSE: Class template is initiated by defining an object using the template argument
(4)FALSE: Class templates are generally used for storage classes
