C++ Interview Questions - LG Soft
C++ Interview Questions - LG Soft
Test Questions
What is Class [Aug 2023]
Write a c++ program to implement an employee by using a class, and print it in another
class.
What is a constructor and destructor
Explain OOPs concept in detail [Aug 2023]
Copy constructors
Explain the OOPs pillars
Explain Function overloading using example
Encapsulation
Different between c and c++
5 Codes give and predict output in c++
Interview Questions
1. Virtual function in c++. WAP to demonstrate it.
2. Why do we need virtual function
3. Queue and stack applications and implementation
4. Binary search tree
5. Swap the num without using temp variable
6. Importance of inheritance.
7. Why do we need function overriding
8. Importance of polymorphism
9. Implementation of operator overloading
10. Implementation of virtual function in two different class
11. Explain Inheritance using example
12. Oops concepts and coding questions on OOPs
13. Pure virtual function
14. Abstract class
15. Size of object ( if function is defined inside class then will it affect size)
16. Implement Queue using c++
17. Write code with one base class, 2 child class with one virtual function call the child 1
function and child 2 function separately from main
18. What is set
19. What is map
20. What are data types In c++
21. Access modifiers
22. They asked some codes like implement bubble sort and queue using c++
23. Difference between run time polymorphism and compile time polymorphism