Classes can be defined and used inside a function or a block. Such classes are called

A. run-time B. namespace name C. constructor
D. istream& E. Standard Template
Library
F. private
G. ostream& H. local I. output
J. free store K. global L. Open
M compile-time N flush O public

4.1 Classes can be defined and used inside a function or a block. Such classes are called
________ classes.
4.2 The new and delete are known as ________ operators.
4.3 The typeid operator is used to find the type at ________ of unknown objects.
4.4 The collection of generic classes and functions is called ________.
4.5 Same variable declared and assigned with different values in various nested blocks can
be accessed by using ________.
4.6 A file can be opened in two ways by using ________ function of the class, and the other
using the member function ________ of the class.
4.7 The class cannot have virtual ________, but can contain virtual destructor.
4.8 To get benefits of virtual functions supporting runtime polymorphism, they should be
declared in the ________ section of a class.
4.9 The overloading of extraction operator for user defined types should have a return type
of ________.
4.10 The flag ios::stdio is used to ________ stdout and stderr after insertion.

The ios::app mode allows us to write data anywhere in the file.

Each statement below is either TRUE or FALSE. Choose the most appropriate one
and ENTER in the “tear-off” sheet attached to the question paper, following
instructions therein.
2.1 The ios::app mode allows us to write data anywhere in the file.
2.2 It is legal to have an object of one class as a member of another class.
2.3 Function templates requires more memory space than normal function.
2.4 Templates are processed by the compiler.
2.5 Overloaded operator functions can be function templates.
2.6 There are only two visibility mode i.e. public and private.
2.7 When a derived class is instantiated only the derived class constructors are invoked.
2.8 Destructors are invoked in the reverse order of constructors.
2.9 The parameter type to overloaded subscript [ ] operator can be of any data type.
2.10 A constructor can be used to convert user-defined data types only.

User defined manipulators

1.6 User defined manipulators
A) May not have a parameter.
B) May have only one parameter.
C) May have any number of parameters.
D) May have all of the above.

Templates are used for

1.3 Templates are used for
A) Defining the generic classes only.
B) Defining both generic classes and generic functions.
C) Defining the generic functions only.
D) None of the above.