0% found this document useful (0 votes)
590 views1 page

C++ Interview Questions - LG Soft

The document outlines a series of C++ interview questions and test questions for LG Soft, covering topics such as classes, constructors, OOP concepts, and various coding tasks. It includes practical coding challenges like implementing data structures and demonstrating key OOP principles like inheritance and polymorphism. The questions are designed to assess both theoretical knowledge and practical programming skills in C++.

Uploaded by

Meghana Sangapur
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)
590 views1 page

C++ Interview Questions - LG Soft

The document outlines a series of C++ interview questions and test questions for LG Soft, covering topics such as classes, constructors, OOP concepts, and various coding tasks. It includes practical coding challenges like implementing data structures and demonstrating key OOP principles like inheritance and polymorphism. The questions are designed to assess both theoretical knowledge and practical programming skills in C++.

Uploaded by

Meghana Sangapur
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/ 1

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

You might also like