Which of the following is a valid class declaration? @class A { int x; };@class B { } @public class A { }@object A { int x; };@C@
Which is not a protection level provided by classes in C++?@protected@hidden@private@public@C@
Which of the following classes handles file input?@ofstream@ifstream@instream@inputfile@A@
Which of the following below can perform conversions between pointers to related classes?@Ast_static@dynamic_cast@static_cast@cast_dynamic@C@
A variable that is part of a class, yet is not part of an object of that class, is called a?@Static member@Friend member@Constant member@Non-static member@A@
Which keyword do we use if the data members of the class are to be modified even when it belongs to a constant object?mutable@static@const@friend@A@
The prototype of output operator in the class "test" is as follows@friend ostream & operator << (ostream &, test &)@ostream & operator << (ostream &, test &)@friend ostream & operator << (test &)@friend ostream & operator << (ostream &)@A@
What is the prototype of pre increment operator in class test?@void operator ++ ();@test operator ++ (int);@void operator ++ (int);@test operator ++ ();@D@
A variable that is part of a class, yet is not part of an object of that class, is called a?@Static member@Friend member@Constant member@Non-static member@A@
Which is a logical abstract base class for a class called "footballPlayer"?@Salary@Sport@Athlete@Team@C@
What is the size of empty class?@ 0 bytes@2 bytes@1 byte@4 bytes@C@
What defines a general set of operations that will be applied to various types of data?@Template class@Function template@Class template@Both a and c above@B@
How would you read the expression x.y as?@member y of object pointed by x@member y of object x@member x of object y@All of the above@B@
The class fstreambuf serves as base class for@ifstream, ofstream, fstream@ifstream, ofstream@ostream@ifstream@A@
 A constructor is called whenever@a object is declared@an object is used@a class is declared@a class is used@A@
The fields in a class of a C++ program are by default@protected@public@private@None of these@C@
 In C++ a function contained within a class is called@a member function@an operator@a class function@a method@A@
Constructors are used to@initialize the objects@construct the data members@both a & b@None of These@A@
 A destructor takes@one argument@two arguments@three arguments@Zero argument@D@
A class having no name@is not allowed@can’t have a constructor@can’t have a destructor@can’t be passed as an argument@C@
A constructor is called whenever@a object is declared@an object is used@a class is declared@a class is used@A@
By default, members of a C++ class are:@Private@Public@Protected@None of the above@A@
C++ supports:@Multiple inheritance@Pointer to functions@Recursion@All of the above@D@
 Which of the following is not a C++ keyword?@Extern@Auto@Inherits@ None of the above@C@
Which of the following is not a bitwise operator?@&&@<<@~@^@A@
In C++, the expression 5/2 is evaluated to:@2.5@2@3@None of the above@B@
In C++, the string literal “C++” occupies exactly ………. of memory.@3 bytes@4 bytes@5 bytes@6 bytes@B@
In C++, generic functions are created using the keyword:@Generic@Template@Class@Type@B@
The implicit argument passed to a member function of a c++ class is called:@“implicit” pointer@“sender” object@“this” pointer@“me” object@C@
The default copy constructor performs:@Deep copy@Shallow copy@Hard copy@Soft copy@B@
