C++ Interview Questions
Questions Answers Views Company eMail

What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 13748

Difference between realloc() and free?

HP,

9 23519

What is a template?

7 7751

What are the main differences between procedure oriented languages and object oriented languages?

IBM, Infosys, Wipro,

9 19136

What is R T T I ?

Ness Technologies,

6 14049

What are generic functions and generic classes?

5 21029

What is namespace?

15 28150

What is the difference between pass by reference and pass by value?

Pfizer, TCS,

12 37216

Why do we use virtual functions?

4 14141

What do you mean by pure virtual functions?

8 13909

What are virtual classes?

1713

Does c++ support multilevel and multiple inheritance?

IBS, Wipro,

9 15121

What are the advantages of inheritance?

IBS, TCS,

26 91327

When is a memory allocated to a class?

11 26798

What is the difference between declaration and definition?

IBS,

20 45648


Un-Answered Questions { C++ }

What is overloading in oops?

589


What is abstract keyword in c++?

586


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

5889


What is the cout in c++?

545


Write about a nested class and mention its use?

619






What are the three parts of a simple empty class?

1447


Define a pointer to a data member of the type pointer to pointer?

567


How can you force the compiler to not generate them?

560


Why are pointers used?

569


Write a function that swaps the values of two integers, using int* as the argument type?

599


What is the difference between procedural programming and oops?

546


What is Advantage and Use of THIS pointer in C++ – Scenarios?

300


Can notepad ++ run c++?

536


What are the two different types of polymorphism?

666


Are strings immutable in c++?

647