Home Interview Questions and AnswersTechnical Interview Questions and AnswersC++ C++ Programming Interview Questions and Answers For Freshers Part-1

1.What is the full form of OOPS?c++
Object Oriented Programming System.

2.What is a class?
Class is a blue print which reflects the entities attributes and actions. Technically defining a class is designing an user defined data type.

3.What is an object?
An instance of the class is called as object.

4.List the types of inheritance supported in C++.
Single, Multilevel, Multiple, Hierarchical and Hybrid.

5.What is the role of protected access specifier?
If a class member is protected then it is accessible in the inherited class. However, outside the both the private and protected members are not accessible.

6.What is encapsulation?
The process of binding the data and the functions acting on the data together in an entity (class) called as encapsulation.

7.What is abstraction?
Abstraction refers to hiding the internal implementation and exhibiting only the necessary details.

8.What is inheritance?
Inheritance is the process of acquiring the properties of the exiting class into the new class. The existing class is called as base/parent class and the inherited class is called as derived/child class.

9.Explain the purpose of the keyword volatile.
Declaring a variable volatile directs the compiler that the variable can be changed externally. Hence avoiding compiler optimization on the variable reference.

10.What is an inline function?
A function prefixed with the keyword inline before the function definition is called as inline function. The inline functions are faster in execution when compared to normal functions as the compiler treats inline functions as macros.

You may also like

Leave a Comment