C++ Interview Questions
Questions Answers Views Company eMail

Can we declare destructor as static? Explain?

3 8101

is java purely oop Language?

HCL, Infosys, TCS,

49 50454

Write any small program that will compile in "C" but not in "C++"

Honeywell,

10 18731

How can you quickly find the number of elements stored in a a) static array b) dynamic array ?

Lucent,

5 13159

How can you find the nodes with repetetive data in a linked list?

Lucent,

1 7969

Why is it difficult to store linked list in an array?

Infosys, Lucent,

6 21488

What is Pure Virtual Function? Why and when it is used ?

Lucent, Sona,

10 77130

How do you know that your class needs a virtual destructor?

Lucent,

5 10242

Why do C++ compilers need name mangling?

Lucent,

3 9151

How can you force instantiation of a template?

ABC, Amazon,

1 5869

Can you explain the term "resource acquisition is initialization?"

Amazon,

1 5186

Explain the ISA and HASA class relationships. How would you implement each in a class design?

3 12243


What is Object and Class? What are the differences between them?

5 9439

What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

Accenture, L&T,

4 18859


Un-Answered Questions { C++ }

What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

639


What are the advantage of using register variables?

711


What is the function to call to turn an ascii string into a long?

669


Program to check whether a word is a sub-string or not of a string typed

1660


Explain register storage specifier.

661






Explain what you mean by a pointer.

714


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3989


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

720


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

645


Can an interface inherit a class?

621


How do I start a c++ project?

665


What are advantages of c++?

638


What is data types c++?

614


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1085


Is sorted c++?

646