What Is C++?: C++ Interview Questions and Answers PDF
What Is C++?: C++ Interview Questions and Answers PDF
Question: 1
What is C++?
C++ is an object oriented programming language created by Bjarne Stroustrup.
C++ maintains almost all aspects of the C language, while simplifying memory management and
adding several features – including a new data type known as a class to allow object oriented
programming.
C++ maintains the features of C which allowed for low level access but also gives the
programmer new tools to simplify memory management.
Question: 2
Question: 3
Encapsulation
Polymorphism
Inheritance
Question: 4
One can easily change the underlying representation by keeping the methods same.
Question: 5
The derived class inherits all the capabilities of the base class, but can add embellishments and
refinements of its own.
Question: 6
What is namespace?
Namespace allows us to group a set of global classes, objects and/or functions under a name.
To say it somehow, they serve to split the global scope in sub scopes known as namespace.
Question: 7
What is an object?
Object is a software bundle of variables and related methods. Objects have state and behavior.
Question: 8
What is polymorphism?
Poly means many and morph means form. Polymorphism is the ability of an object (or
reference) to assume (be replaced by) or become many different forms of object.
Question: 9
What is scope resolution operator?
A scope resolution operator (::), can be used to define the member functions of a class outside
the class.
Question: 10
A pointer or reference of base class type pointing or referring to an object of derived class.