State which of the following statements are true and which are false. If a statement is false, explain why.

1) The template parameters of a function-template definition are used to specify the types of the arguments to the function, to specify the return type of the function and to declare variables within the function.
2) Keywords typename and class as used with a template type parameter specifically mean “any user-defined class type.”
3) A function template can be overloaded by another function template with the same function name.
4) Template parameter names among template definitions must be unique.
5) Each member-function definition outside a class template must begin with a template header.


1) True.
2) False. Keywords typename and class in this context also allow for a type parameter of a fundamental type.
3) True.
4) False. Template parameter names among function templates need not be unique.
5) True.

Computer Science & Information Technology

You might also like to view...

The __________ interface allows the client to hold on to a resource until the client is notified that someone else needs the resource.

A) ?Resource configure ? B) ?Resource requested C) ?Resource ? D) ?Resource-specific

Computer Science & Information Technology

The body of a namespace is delimited by ________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

What Desired State Configuration mode is being utilized when servers can obtain their configurations from a central server by using standard web protocols?

A. Pull mode B. Manual mode C. Push mode D. Standard mode

Computer Science & Information Technology

Search engines use a specialized computer program called a _____ that travels from site to site indexing, or cataloging, the contents of the pages based on keywords.

A. wireframe B. topology C. thread D. spider

Computer Science & Information Technology