0% found this document useful (0 votes)
31 views4 pages

CPP Interview

Uploaded by

Joylin Ancy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views4 pages

CPP Interview

Uploaded by

Joylin Ancy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Interview Questions in C++

---------------------------------
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?

LG Company Interview Questions


1)what is standard library ?
2) what is templatewhat is template, how its work internally ?
3) what is polmorphism explain with example ?
4) what is virtual and pure virtual function?
5) explain difference between class and structre in c++ ?
6) what is friend function ?
7) explain memory layout ?
8) difference between compile time and run time ?
9) how to allocate dynamic memory for 2D array ?
10) how many ways we can call the function ?
11) explain vector project ?
12) what is operator overload explain with example (+ operator) ?
13) types of pointer in c lan ?
14) what is namelaing ?
15) what is inline function ?
16) difference between malloc and new ?
17) difference betwwen static and Dyanamic memory ?
18) what is virtual distructor ?
19) why constructor is not virtual ?
20) what is smart pointer ?
21) how this pointer works internal ?
22) what is copy constructor ?
23) what is function pointer (use,work) ?
24) what is static data member ?
25) component of STL ?
26) what is virtual table ?
27) what is function overriding ?
28) what is abstract class ?
29) how to call function in class with object and pointer ?
30) why access specifier is not affect on friend function ?
31) types of DS?

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).

You might also like