C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 13588

What is an abstract class?

Siemens,

4 6910

What is the difference between creating an object, using 'new' and using 'malloc'?

Siemens, HFG,

3 8347




What is a virtual base class?

Siemens, Fidelity,

6 18429

What is OOPS and How it is different from Procedural Programming ?

Infosys, HP, Thyrocare,

23 54630

Difference between Top down and bottom up approaches for a given project ?

Siemens, Infosys, HCL, CSC, HP, IIT, BSNL,

14 96685

What and all can a compiler provides by default?

Accenture, HP,

3 11146

What are the different operators in C++?

HP,

3 11167

What is the difference between method and message?

HP,

5 41771

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 48059

when can we use copy constructor?

HP,

6 12564

Describe functional overloading?

HP,

6 7971

Difference between Overloading and Overriding?

IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,

35 180322

Difference between Operator overloading and Functional overloading?

HP,

10 45187

What is virtual constructor paradigm?

HCL, HP,

5 10285







Un-Answered Questions { C++ }

A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

2498


What is a type library?

13


Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

21


How the keyword struct is different from the keyword class in c++?

15


Can you overload the operator+ for short integers?

14






Difference between delete and free.

7


What are references in c++?

15


Explain the difference between c++ and java.

9


Can we use this pointer in a class specific, operator-overloading function for new operator?

16


Explain terminate() and unexpected() function?

9


Where must the declaration of a friend function appear?

9


What is the latest version on c++?

5


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

11


Write a Program to find the largest of 4 no using macros.

28


what is the 3 types of system development life cycle

1805