|
What will be the output of following program? #include<iostream.h> void main() { float x; x=(float)9/2; cout<<x; }
_____________________________________________________________________________________
|
The term __________ means the ability to take many forms.
_____________________________________________________________________________________
|
Runtime polymorphism is achieved by
_____________________________________________________________________________________
|
Access to private data
_____________________________________________________________________________________
|
Additional information sent when an exception is thrown may be placed in
_____________________________________________________________________________________
|
A static data member is given a value
_____________________________________________________________________________________
|
What will be the result of the expression 13 & 25?
_____________________________________________________________________________________
|
In a class specifier ,data or function designated private are accessible
_____________________________________________________________________________________
|
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.
_____________________________________________________________________________________
|
At which point of time a variable comes into existence in memory is determined by its
_____________________________________________________________________________________
|
When the compiler cannot differentiate between two overloaded constructors, they are called
_____________________________________________________________________________________
|
The actual source code for implementing a template function is created when
_____________________________________________________________________________________
|
Usually a pure virtual function
_____________________________________________________________________________________
|
Which of the following is the valid class declaration header for the derived class d with base classes b1 and b2?
_____________________________________________________________________________________
|
The process of extracting the relevant attributes of an object is known as
_____________________________________________________________________________________
|
What features make C++ so powerful ?
_____________________________________________________________________________________
|
Which of the following operator can be overloaded through friend function?
_____________________________________________________________________________________
|
The keyword friend does not appear in
_____________________________________________________________________________________
|
Exception handling is targeted at
_____________________________________________________________________________________
|
Function templates can accept
_____________________________________________________________________________________
|
If the variable count exceeds 100, a single statement that prints “Too many” is
_____________________________________________________________________________________
|
The mechanism that binds code and data together and keeps them secure from outside world is known as
_____________________________________________________________________________________
|
The operator << when overloaded in a class
_____________________________________________________________________________________
|
To
access the public function fbase() in the base class, a statement in a
derived class function fder() uses the statement.fbase();
_____________________________________________________________________________________
|
In which case is it mandatory to provide a destructor in a class?
_____________________________________________________________________________________
|
_________ members of a base class are never accessible to a derived class.
_____________________________________________________________________________________
|
What is the error in the following code? class t { virtual void print(); }
_____________________________________________________________________________________
|
It is possible to declare as a friend
_____________________________________________________________________________________
|
A struct is the same as a class except that
_____________________________________________________________________________________
|
C++ was originally developed by
_____________________________________________________________________________________
|
What is the output of the following code char symbol[3]={‘a’,‘b’,‘c’}; for (int index=0; index<3; index++) cout << symbol [index];
_____________________________________________________________________________________
|
If we create a file by ‘ifstream’, then the default mode of the file is _________
_____________________________________________________________________________________
|
The following can be declared as friend in a class
_____________________________________________________________________________________
|
The polymorphism can be characterized by the phrase
_____________________________________________________________________________________
|
A virtual class is the same as
_____________________________________________________________________________________
|
Member functions, when defined within the class specification
_____________________________________________________________________________________
|
Assume
that we have constructor functions for both base class and derived
class. Now consider the declaration in main( ). Base * P = New Derived;
in what sequence will the constructor be called ?
_____________________________________________________________________________________
|
The operator that cannot be overloaded is
_____________________________________________________________________________________
|
Which of the following declarations are illegal?
_____________________________________________________________________________________
|
Identify the operator that is NOT used with pointers
_____________________________________________________________________________________
|
Which of the following statements is NOT valid about operator overloading?
_____________________________________________________________________________________
|
Overloading a postfix increment operator by means of a member function takes
_____________________________________________________________________________________
|
Which of the following will produce a value 10 if x = 9.7?
_____________________________________________________________________________________
|
Which of the following is not the characteristic of constructor?
_____________________________________________________________________________________
|
You may override the class access specifiers
_____________________________________________________________________________________
|
You separated a derived class name from its access specifier with
_____________________________________________________________________________________
|
Consider the following statements: int x = 22,y=15; x = (x>y) ? (x+y) : (x-y); What will be the value of x after executing these statements?
_____________________________________________________________________________________
|
A friend function to a class, C cannot access
_____________________________________________________________________________________
|
The members of a class by default are
_____________________________________________________________________________________
|
If x =5, y =2 then x ^y equals________. (where ^ is a bitwise XOR operator)
_____________________________________________________________________________________
|