Crack The Campus - Technical Interviews for Tech Companies

Welcome Guest

Search:

Crack The Campus - Technical Interviews for Tech Companies » C%2b%2b » C++ Object Oriented Interviews Questions

C++ Object Oriented Interviews Questions



What is pure virtual function?
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

Q. Write a Struct Time where integer m, h, s are its members
struct Time
{
int m;
int h;
int s;
};

ow do you traverse a Btree in Backward in-order?
Process the node in the right subtree
Process the root
Process the node in the left subtree

Q. What is the two main roles of Operating System?
As a resource manager
As a virtual machine

Q. In the derived class, which data member of the base class are visible?
In the public and protected sections.



Rating: 2.00

Comments

No comments posted.

Add Comment

You do not have permission to comment. If you log in, you may be able to comment.