Which of the following statements is correct?
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
SHOW ANSWERWhich of the following is not the member of class?
Static function
Friend function
Const function
Virtual function
SHOW ANSWERWhich of the following term is used for a function defined inside a class?
Member Variable
Member function
Class function
Classic function
SHOW ANSWERWhich of the following statement is correct?
A constructor is called at the time of declaration of an object.
A constructor is called at the time of use of an object.
A constructor is called at the time of declaration of a class.
A constructor is called at the time of use of a class.
SHOW ANSWERWhich of the following approach is adapted by C++?
Top-down
Bottom-up
Right-left
Left-right
SHOW ANSWERWhich of the following operator is overloaded for object cout?
>>
<<
+
=
SHOW ANSWERWhich of the following functions are performed by a constructor?
Construct a new class
Construct a new object
Construct a new function
Initialize objects
SHOW ANSWERWhen a function is defined inside a class, this function is called ………….
Which of the following cannot be passed to a function?
State true of false.
i) We cannot make the function inline by defining a function outside the class.
ii) A member function can be called by using its name inside another member function of the same class, this is known as nesting of member function.
Which of the following operators could be overloaded?
Which of the following keywords are used to control access to a class member?
What will be the values of x, m and n after execution of the following statements?
Int x, m, n;
m=10;
n=15;
x= ++m + n++;
The major goal of inheritance in C++ is
A variable is defined within a block in a body of a function. Which of the following are true?
The friend functions are used in situations where
………….. means that the code associated with a given procedure call is not known until the time of the call at run time.
Through ………………., we can eliminate redundant code and extend the use of existing classes.