C++ Interview Questions
Questions Answers Views Company eMail

Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?

1 537

What is virtual destructors? Why they are used?

1 517

What you mean by early binding and late binding? How it is related to dynamic binding?

1 544

What is meant by reference variable in C++?

1 541

How to create a reference variable in C++

1 548

What are the difference between reference variables and pointers in C++?

1 533

What will the line of code below print out and why?

322

What is the error in the code below and how should it be corrected?

301

What will i and j equal after the code below is executed? Explain your answer.

1 549

What are the different data types present in C++?

1 731

What are class and object in C++?

1 649

Compare compile time polymorphism and Runtime polymorphism

1 490

What do you know about friend class and friend function?

1 544

Define inline function

1 551

What is a reference in C++?

1 628


Un-Answered Questions { C++ }

Can comments be longer than one line?

616


What is oops concept with example?

574


Is it possible for the objects to read and write themselves?

638


Explain how to initialize a const member data.

597


What is a Default constructor?

914






Tell me what are static member functions?

611


What is the oops and benefits of oops programming?

549


When one must use recursion function? Mention what happens when recursion functions are declared inline?

645


What is long in c++?

734


What is the real time example of encapsulation?

593


What is meant by oops concept?

608


How does class accomplish data hiding in c++?

657


What is an orthogonal base class in c++?

650


Is data hiding and abstraction same?

567


What are the advantages of using typedef in a program?

638