Q. |
What is the output of the following code.
int i=5,j=6,k=7,n=3;
cout<
cout<
Show Answer
|
Q. |
What is the output pf the following code?
int x=20,y=35;
x=y++ + x++;
cout<
Show Answer
|
Q. |
We can create objects of the abstract class.
Show Answer
|
Q. |
Which of the followings is/are not keyword in CPP?
Show Answer
|
Q. |
When a child class inherits traits from more than one parent class, this type of inheritance is called _______________ inheritance.
Show Answer
|
Q. |
Which of the following statements are not true about destructor?
A.
It is invoked when object goes out of the scope
B.
Like constructor it can also have parameters
Answer :
Like constructor it can also have parameters
Show Answer
|
Q. |
A function can be declared as friend maximum only in two classes
Show Answer
|
Q. |
Assigning one or more function body to the same name is called ____________ .
Answer :
Function Overloading
Show Answer
|
Q. |
Find the wrong statement about Abstract Class.
A.
We can’t create its objects
B.
We can’t create pointers to an abstract class.
C.
It contains at least one pure virtual function
D.
We can create references to an abstract class.
Answer :
We can’t create pointers to an abstract class.
Show Answer
|
Q. |
Runtime polymorphism is achieved only when a virtual function is accessed through a pointer to the base class.
Show Answer
|