Placement Papers & Technical Interview Questions

 

Chennai Home > Placement Papers > C and C++

C++ Object oriented interview questions

1. 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



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

3.How 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

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

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

 

 

© 2006 SpiritOfChennai.com All Rights Reserved Privacy Policy