Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

C++ Interview Questions and Answers

Ques 116. What is polymorphism?

Ans.
Polymorphism is the idea that a base class can be inherited by several classes. A base class pointer can point to its child class and a base class array can store different child class objects.

Is it helpful? Add Comment View Comments
Ques 117. How can you tell what shell you are running on UNIX system?
Ans. You can do the Echo $RANDOM. It will return a undefined variable if you are from the C-Shell, just a return prompt if you are from the Bourne shell, and a 5 digit random numbers if you are from the Korn shell. You could also do a ps -l and look for the shell with the highest PID.
Is it helpful? Add Comment View Comments
Ques 118. What is pure virtual function?
Ans.
A class is made abstract by declaring one or more of its virtual functions to be pure. A pure virtual function is one with an initializer of = 0 in its declaration
 
Is it helpful? Add Comment View Comments
Ques 119. Write a Struct Time where integer m, h, s are its members
Ans.
struct Time
{
int m;
int h;
int s;
};
Is it helpful? Add Comment View Comments
Ques 120. How do you traverse a Btree in Backward in-order?
Ans.
Process the node in the right subtree
Process the root
Process the node in the left subtree
Is it helpful? Add Comment View Comments

3) What is pure virtual function? 4) Write a Struct Time where integer m, h, s are its members 5) How do you traverse a Btree in Backward in-order? " />

Most helpful rated by users:

©2016 WithoutBook