It is possible to declare as a friend
_____________________________________________________________________________________
|
What will be the result of the expression 13 & 25?
_____________________________________________________________________________________
|
A function call mechanism that passes arguments to a function by passing a copy of the values of the arguments is __________
_____________________________________________________________________________________
|
The members of a class, by default, are
_____________________________________________________________________________________
|
Which of the following is a string literal constant?
_____________________________________________________________________________________
|
Which of the following statements is NOT valid about operator overloading?
_____________________________________________________________________________________
|
What is the output of the following code char symbol[3]={‘a’,‘b’,‘c’}; for (int index=0; index<3; index++) cout << symbol [index];
_____________________________________________________________________________________
|
Which of the statements is true in a protected derivation of a derived class from a base class?
_____________________________________________________________________________________
|
In which case is it mandatory to provide a destructor in a class?
_____________________________________________________________________________________
|
The concept of hierarchical classification is related to
_____________________________________________________________________________________
|
Assume that we have constructor function for both Base and Derived classes. Now consider the declaration :
main ( )
Base *p = new Derived;
In what sequence, the constructor will be executed ?
_____________________________________________________________________________________
|
If you wanted to sort many large objects or structures, it would be most efficient to
_____________________________________________________________________________________
|
cfront
_____________________________________________________________________________________
|
Usually a pure virtual function
_____________________________________________________________________________________
|
A static data member is given a value
_____________________________________________________________________________________
|
C++ was originally developed by
_____________________________________________________________________________________
|
What is the error in the following code? class t { virtual void print(); }
_____________________________________________________________________________________
|
If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access
_____________________________________________________________________________________
|
A friend function has access to all private and protected members of the class for which it is a friend
_____________________________________________________________________________________
|
Which of the following cannot be legitimately passed to a function
_____________________________________________________________________________________
|
Match the following : (a) Garbage collection in 1. Java (b) Nameless object 2. generic programming (c) Template support 3. defines a class (d) A forward reference 4. member function (e) Derived class inherits from base class
_____________________________________________________________________________________
|
The polymorphism can be characterized by the phrase
_____________________________________________________________________________________
|
A class defined within another class is
_____________________________________________________________________________________
|
In multiple inheritance
_____________________________________________________________________________________
|
Which of the statements are true ? I. Function overloading is done at compile time. II. Protected members are accessible to the member of derived class. III. A derived class inherits constructors and destructors. IV. A friend function can be called like a normal function. V. Nested class is a derived class.
_____________________________________________________________________________________
|
In C++, dynamic memory allocation is accomplished with the operator ____
_____________________________________________________________________________________
|
Use of virtual functions implies
_____________________________________________________________________________________
|
Which of the following type casts will convert an Integer variable named amount to a Double type?
_____________________________________________________________________________________
|
The members of a class by default are
_____________________________________________________________________________________
|
What will be the output of following program? #include<iostream.h> void main() { float x; x=(float)9/2; cout<<x; }
_____________________________________________________________________________________
|
Which feature in OOP allows reusing code?
_____________________________________________________________________________________
|
Exception handling is targeted at
_____________________________________________________________________________________
|
Overloading a postfix increment operator by means of a member function takes
_____________________________________________________________________________________
|
Which of the following, if any, are valid names for variables?
_____________________________________________________________________________________
|
What does C++ append to the end of a string literal constant?
_____________________________________________________________________________________
|
A template class
_____________________________________________________________________________________
|
A struct is the same as a class except that
_____________________________________________________________________________________
|
An array element is accessed using
_____________________________________________________________________________________
|
Which of the following is not the characteristic of constructor?
_____________________________________________________________________________________
|
An exception is caused by
_____________________________________________________________________________________
|
To access the public function fbase() in the base class, a statement in a derived class function fder() uses the statement.fbase();
_____________________________________________________________________________________
|
RunTime Polymorphism is achieved by ______
_____________________________________________________________________________________
|
Runtime polymorphism is achieved by
_____________________________________________________________________________________
|
Pure virtual functions
_____________________________________________________________________________________
|
If x =5, y =2 then x ^y equals________. (where ^ is a bitwise XOR operator)
_____________________________________________________________________________________
|
Identify the operator that is NOT used with pointers
_____________________________________________________________________________________
|
A friend function to a class, C cannot access
_____________________________________________________________________________________
|
A variable defined within a block is visible
_____________________________________________________________________________________
|
The function whose prototype is void getData(Item *thing); receives
_____________________________________________________________________________________
|
The keyword friend does not appear in
_____________________________________________________________________________________
|