C++ Interview Questions
Questions Answers Views Company eMail

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

2 13764

Difference between realloc() and free?

HP,

9 23576

What is a template?

7 7792

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

IBM, Infosys, Wipro,

9 19168

What is R T T I ?

Ness Technologies,

6 14110

What are generic functions and generic classes?

5 21056

What is namespace?

15 28204

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

Pfizer, TCS,

12 37282

Why do we use virtual functions?

4 14164

What do you mean by pure virtual functions?

8 13940

What are virtual classes?

1723

Does c++ support multilevel and multiple inheritance?

IBS, Wipro,

9 15180

What are the advantages of inheritance?

IBS, TCS,

26 91416

When is a memory allocated to a class?

11 26845

What is the difference between declaration and definition?

IBS,

20 45727


Un-Answered Questions { C++ }

Why cout is used in c++?

562


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

632


What is an interface in oop?

593


Who made c++?

609


What are the costs and benefits of using exceptions?

541






Do you know about latest advancements in C++ ?

658


Differentiate between late binding and early binding.

642


write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num

2196


What is ctime c++?

579


What is the difference between set and map in c++?

606


What will happen if a pointer is deleted twice?

722


What does new return if there is insufficient memory to make your new object?

584


What is static variable and difference between(const char *p,char const *p,const char* const p).

583


Explain the advantages of inheritance.

673


What is a set in c++?

531