adplus-dvertising
frame-decoration

Question

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 and b

Answer: (d).Both a and b

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Templates are abstract recipe for producing a concrete code, and it is used for

Similar Questions

Discover Related MCQs

Q. Containers have the same types, that's why they are called

Q. A common activity performed on a container is called

Q. A container class is a class whose instances are

Q. The imprudent use of Goto statement leads to the

Q. In a template function, _____ argument is generic, or parameterized

Q. A default exception block must be placed _____

Q. A derived class _____ override attributes of a parent class

Q. If an exception is thrown and no catch block matches the type of the thrown parameter, then _____

Q. When you create a derived class and instantiate on object

Q. If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________

Q. When a new class is derived from an existing class, the derived class member functions _____ have names that differ from base class function names

Q. You can throw _____

Q. A class D can be derived from a class C, which is derived from a class B, which is derived from a class A

Q. A function that uses variable types is called __________

Q. You can code a default exception handler by creating a catch block

Q. The generic name used for unexpected errors that occur during the execution of a program is

Q. In the statement template<class T>,

Q. The difference between a return and a throw is that _____

Q. When you instantiate a derived class object, a constructor for the derived class _____

Q. A function in a derived class that has the same name as a function in the parent class _____