CPP Interview
CPP Interview
---------------------------------
1. What is the difference b/w C and C++.
2. what are the main features in C++.
3. What is scope resolution operator, where we are using.
4. What is the difference b/w reference variable and Typedef
5. what is the inline function
6. what is namemangiling in c++?
7. what is namespace with realtime example
8. what is anonymous namespace in c++
9. difference b/w directive and declarative method
10. sizeof wchar_t in c++
11. what is class and object with realtime example
12. why sizeof empty class is 1 byte, explain it.
13. What is anonymous class in C++?
14. what is anonymous object in C++?
15. what is friend function?use of friend function?
16. what is constructor?
17. What are the default member functions of class?
18. What is shallow copy and deep copy?
19. Why copy constructor must collect the arguments
with reference only
20. What is the difference b/w constructor and destructor
21. what is static data member in C++? How to access it.
22. if the constructor is in private section How to access
it?
23. What is mutable keyword in C++?
24. what is constant member function in c++?
25. How to overload insertion and extraction operators in
c++?
26. what is inheritance? Types of inheritance in c++?
27. what is multipath inheritance explain it?
28. What is virtual function?
29. What is pure virtual function?
30. What is abstract class in c++?
31. what is object slicing?
32. What is the difference b/w static binding and dynamic
binding in c++?
33. what is the difference b/w compiletime binding and
runtime binding ?
34. What is the difference b/w early binding and late
binding in c++?
35. what is function overriding in c++?
36. what is the difference b/w function overloading and
function overriding?
37. what is virtual table in c++?
38. what is template? Types of template?
39. What is smart pointer?
40. What is singleton class?
1) input :- 0XABCD
output:- 0XCDAB
2) input :- HELLO GOOD MORNING
output :- MORNING GOOD HELLO
3) input :- WAP for n number of studend data record in c++ using
vector.
4) prove size of short integer (65536).
5) find the digit in string "LG S1OF2T" and print.
6) delete the node in 3rd position in DS.
7) count the node DS.
8) program of shift operator in c lan.
9) print non repeted char...(vector india).