I this post we have provided part 1 of the most common C++ interview questions along with answers. We recommend you to try to answer the questions, before referring to the given answer. If you find any mistake or a better alternate solution we are happy to see your suggestions and comments
1. What is C++?
Ans : C++ is a object oriented programming language.
2. What is Object Oriented Programming (OOP) ?
Ans : Programming using Objects is called Object Oriented Programming?
3. What is Object?
Ans : Object is a data structure to combine data and related operations
4. What is class?
Ans : class is the data type used to achieve OOP in C++
5. What are the different access specifiers in C++ class?
6. What are the programming paradigms supported by C++?
- Object Oriented
7. What is a namespace?
Ans : Namespace is the method to combine functionally related identifiers like variables, function and classes into single entity. Namespace provides a method to avoid name conflicts
8. What is name mangling?
Ans : Name mangling is the technique used to achieve function overloading. On compiling overload functions the compiler assigns unique name to each overload by adding compiler dependent extension which is called name mangling.
9. What are the fundamental features of OOP?
- Data Hiding
10. What are the different types of inheritance in C++?
- Multi Level