CSE2305 - Object-Oriented Software Engineering
Self Assesment Questions
For each question choose the single response which best answers the question, or which completes the statement most accurately.
| Question 176: | In C++, a template can have the following as template parameters in its angled brackets: |
| One or more types, preceded by the class keyword. |
| One or more integral variables, preceded by their type names. |
| One or more variables of any type, preceded by their type names. |
| One or more types, preceded by the class keyword, and one or more integral variables, preceded by their type names. |
| One or more types, preceded by the class keyword, and one or more variables of any type, preceded by their type names. |
| Question 177: | Function templates in C++ are specified using which keyword(s)? |
| template |
| template function |
| virtual |
| generic |
| const |
| Question 178: | A "template specialization" is: |
| A special class used in a normal template definition. |
| An object which is an instance of a templated class. |
| A special version of a templated class or function for a specific template parameter value. |
| A non-templated class or function with the same name as a templated class or function. |
| None of the above. |
Last updated: October 1, 2005