Oral Question in CPP
Oral Question in CPP
1. What is C++?
2. Explain the difference between C and C++.
3. What is Object-Oriented Programming (OOP)?
4. List the four pillars of OOP.
5. Explain the concept of encapsulation.
6. What is inheritance in C++?
7. Describe the difference between public, private, and protected access specifiers.
8. What is polymorphism, and how is it achieved in C++?
9. Explain the concept of function overloading.
10. What is operator overloading?
11. Differentiate between shallow copy and deep copy.
12. What is a constructor in C++?
13. Explain the purpose of a destructor.
14. What is a copy constructor?
15. What is a friend function?
16. What is a virtual function?
17. Explain pure virtual functions and abstract classes.
18. What is a template in C++?
19. What is the Standard Template Library (STL)?
20. Explain the difference between a class and an object.
21. What is a pointer in C++?
22. Describe the concept of dynamic memory allocation.
23. Explain the difference between new and malloc().
24. What is the use of the delete operator in C++?
25. Discuss the difference between const and volatile in C++.
26. What is the difference between pass by value and pass by reference?
27. Explain the concept of function pointers.
28. Discuss the use of the keyword "this" in C++.
29. What is the difference between a structure and a class in C++?
30. Describe the purpose of the inline function.
31. How does exception handling work in C++?
32. Explain the purpose of the try, catch, and throw keywords.
33. What is the difference between std::vector and std::array in the STL?
34. Discuss the use of the auto keyword in C++.
35. What is the difference between a stack and a heap?
36. How does multiple inheritance work in C++?
37. Explain the concept of RTTI (Run-Time Type Information).
38. What is a smart pointer in C++?
39. What is C++ and its significance in programming?
40. Discuss the history and evolution of C++.
41. Differentiate between procedural programming and object-oriented programming.
42. Explain the concept of a class in C++.
43. How does C++ support multiple inheritances?
44. What are access specifiers, and how do they affect class members?
45. Discuss the differences between C++ and Java.
46. Explain the role of constructors and destructors in C++.
47. What is function overloading, and how is it implemented in C++?
48. Describe the concept of operator overloading.
49. Discuss the purpose of the "const" keyword in C++.
50. Explain the difference between reference and pointer in C++.
51. What is the purpose of the "static" keyword in C++?
52. Discuss the importance of the "virtual" keyword in C++.
53. What is polymorphism, and how does it relate to virtual functions?
54. Explain the concept of pure virtual functions and abstract classes.
55. How does encapsulation contribute to the concept of data hiding?
56. Discuss the difference between new and malloc() in memory allocation.
57. What is the purpose of the "delete" operator in C++?
58. Explain the concept of templates in C++.
59. Discuss the advantages and disadvantages of using templates.
60. What is the Standard Template Library (STL) in C++?
61. Differentiate between a vector and a list in STL.
62. Explain the concept of exception handling in C++.
63. What is the use of the "try," "catch," and "throw" keywords?
64. How are constructors and destructors different in derived classes from base classes?
65. What is a friend function in C++?
66. Discuss the role of the "this" pointer in C++.
67. Explain the difference between early binding and late binding.
68. What is a virtual destructor, and why might it be needed?
69. How do you achieve runtime polymorphism in C++?
70. Discuss the advantages and disadvantages of using pointers in C++.
71. Explain the concept of a copy constructor.
72. What is the purpose of the "explicit" keyword in C++?
73. How does function overloading differ from function overriding?
74. Discuss the concept of a shallow copy and a deep copy.
75. Explain the role of the "const" keyword in member functions.
76. What is the significance of the "volatile" keyword in C++?
77. Discuss the use of the "auto" keyword in C++.
78. How are arrays and pointers related in C++?
79. Explain the difference between a stack and a heap.
80. Discuss the role of the "typename" keyword in C++ templates.
81. What is the difference between a template class and a template function?
82. Explain the purpose of the "mutable" keyword in C++.
83. How is memory management handled in C++?
84. Discuss the importance of the Rule of Three in C++.
85. Explain the role of the "const_cast" operator in C++.
86. What is the purpose of the "typeid" operator in C++?
87. Discuss the differences between the pre-increment and post-increment operators.
88. How does the "sizeof" operator work in C++?