Question: True/False: C++ Please don't answer if you are not sure about your answer. 1.The template prefix can be written template or template with the same
True/False: C++
Please don't answer if you are not sure about your answer.
1.The template prefix can be written template
2.In the template prefix, template
3.It is possible to have more than one type parameter in a template definition.
4.It is preferable to separate implementation and specification in software. Hence, it is preferable to place a template class definition in a header file, the template implementation of the member functions in an implementation file. The implementation should be compiled separately and linked to the application.
5.Late binding refers to the fact that the decision as to which virtual function member in an inheritance hierarchy is called may be made during program execution rather than at compile time.
6.A class that has a pure virtual member function is called an abstract class.
7.The class derived from an abstract class can itself be abstract.
8.No objects can be defined of abstract base class type since it is an incomplete definition.
9.Assignment to a base class object from a derived class object is permitted, but has the slicing problem, wherein you lose the non-base class members in the derived object.
10.A derived class destructor always invokes the base class destructor.
11.The binding of virtual function is done at runtime if called using an object.
12.If class D is derived from class B, we speak of D as the child class and B as the parent class.
13.If class D is derived from class B, then we say that class D inherits from class B.
14.An object of a derived class type has exactly one type, the type with which it was declared.
15.Base class default ctor will be implicitly invoked from the constructor of the derived class if no other base class ctors being invoked.
16.We can assign a base class object to a derived class variable.
17.An inheritance chain of any desired length is possible.
18.The class D inherits from base class B using public inheritance. The class B has public member function f(), but the derived class has no function member with this signature. The f() is not available to an object of class D.
19.When you use the open member function to tie a file name to a file stream, the file name is called the external file name, and the program refers to the file by the stream name.
20.cout has type ostream, i.e., is an output object.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
