Home › Interview Questions
WELCOME TO ENOSIS LEARNING

Technical Interview Questions & Answers Hub

Comprehensive collection of real-world interview questions, expert answers, code snippets, and interview preparation guides.

Real Interview Questions
Verified Answers
Downloadable Q&A PDF

CPP Interview Questions

Verified Technical Q&A • Career Prep Guide
Q1

What is C++ ?

Verified Answer
C++ is a Object Oriented Programming Language supporting all the featues of OOPs.
Q2

What are the differences between C and C++?

Verified Answer
1) C++ is a kind of superset of C, most of C programs except few exceptions (See this and this) work in C++ as well. 2) C is a procedural programming language, but C++ supports both procedural and Object Oriented programming. 3) Since C++ supports object oriented programming, it supports features like function overloading, templates, inheritance, virtual functions, friend functions. These features are absent in C. 4) C++ supports exception handling at language level, in C exception handling is done in traditional if-else style. 5) C++ supports references, C doesn’t. 6) In C, scanf() and printf() are mainly used input/output. C++ mainly uses streams to perform input and output operations. cin is standard input stream and cout is standard output stream.
Q3

What is Object Oriented Programming?

Verified Answer
Object Oriented Programming (OOP) is a programming paradigm where the complete software operates as a bunch of objects talking to each other. An object is a collection of data and methods that operate on its data. Why OOP? The main advantage of OOP is better manageable code that covers following. 1) The overall understanding of the software is increased as the distance between the language spoken by developers and that spoken by users. 2) Object orientation eases maintenance by the use of encapsulation. One can easily change the underlying representation by keeping the methods same. OOP paradigm is mainly useful for relatively big software. See this for a complete example that shows advantages of OOP over procedural programing.
Q4

What is a class?

Verified Answer
Class is a blue print which reflects the entities attributes and actions. Technically defining a class is designing an user defined data type.
Q5

What is an object?

Verified Answer
An instance of the class is called as object.
Q6

What is encapsulation?

Verified Answer
The process of binding the data and the functions acting on the data together in an entity (class) called as encapsulation.
Q7

What is inheritance?

Verified Answer
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.
Q8

What is the purpose of Inheritance?

Verified Answer
The idea of inheritance is simple, a class is based on another class and uses data and implementation of the other class. The purpose of inheritance is Code Reuse.
Q9

What is an inline function?

Verified Answer
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.
Q10

Mention the storage classes names in C++.

Verified Answer
The following are storage classes supported in C++ auto, static, extern, register and mutable

Community Discussion & Student Questions

vdat5y

Posted On: 27-08-2026 07:49:56

ttk0nc

Posted On: 24-08-2026 13:49:47

pit14n

Posted On: 02-07-2026 03:39:35

wuaf6v

Posted On: 30-06-2026 16:44:33

ohmlir

Posted On: 30-06-2026 05:07:03

ar1n08

Posted On: 26-06-2026 10:51:17

e8ebso

Posted On: 25-06-2026 23:23:06

8w30an

Posted On: 19-06-2026 14:58:18

tzayop

Posted On: 16-06-2026 19:25:14

y45g6m

Posted On: 13-06-2026 14:45:33

Enosis Learning
Online