C++ Basic Interview Question and Answers

1. What is C++?
  C++ is created by Bjarne Stroustrup of AT&T Bell Labs as an extension of C, C++ is an object-oriented computer language used in the development of enterprise and commercial applications. Microsoft’s Visual C++ became the premier language of choice among developers and programmers.
Rushikesh ,says August 13,2017
I think c++ is an advanced language. Where in that some additional feature has added like access specifire which give access to the variable in class and also outside of the class. And with it added some extra feature like data hiding, abstraction and encapuslation and some more like that.
Chauhan Diwakar,says May 23,2017
C++ (pronounced cee plus plus) is a general purpose programming language. It is plus plus features of C Programming Language. It is designed with a bias for systems programming (e.g. embedded systems, operating system kernels), with performance, efficiency and flexibility of use as its design requirements. C++ has also been found useful in many other contexts, including desktop applications, servers (e.g. e-commerce, web search, SQL), performance critical applications (e.g. telephone switches, space probes) and entertainment software, such as video games etc.
Surbhi dighe ,says May 22,2017
C++ is an extention of c language and it is an object oriented programming language.
Sasanka ,says May 29,2014
Basically C++ is a super set of C language.C++ Is a Object Oriented programming language(OOP)..C++ language support button to To approach with Header file.
ARCHNA SRIVASTAVA,says May 09,2014
    We can define c++ in 5 step
  • c++ is object - oriented programming language.
  • It is subset of c.
  • C++= c + oops - It is an extended version of c.
  • It was developed by BJARNE STROUSTRUP at AT & T BELL LAB USA in 1980.
Jayand Bharati,says Apr 13,2014
C++ is an object-oriented computer language used in learning and development of applications all around the world.
Your Name Your Email-ID
Your Answer
2. What are the basic concepts of object oriented programming?
    It is necessary to understand some of the concepts used extensively in object oriented programming.These include
  • Objects
  • Classes
  • Data abstraction and encapsulation
  • Inheritance
  • Polymorphism
  • Dynamic Binding
  • Message passing
Sasanka ,says May 29,2014
The basic Concept of Object Oriented Programming Languages are on based on Object.But here functions(methods) are fixed but Objects are moving function to function within a program.Instead of that it uses the different features including classes,data encaptulation and abstaction ,inheritance,Polymorphism,dynamic binding etc.
Your Name Your Email-ID
Your Answer
3. Define inheritance?
  The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance. It allows the extension and reuse of existing code without having to rewrite the code from scratch. Inheritance is the process by which objects of one class acquire properties of objects of another class.
Rushikesh ,says August 13,2017
Inheritance means derive a new class from the base class or is the process of making a new class from extended to super class for example, suppose A is the super class and B is extended class or derived class then all the member of B class can access all the variable of the A class instead they declared as private is has some kind of like single inheritance,multiple,multilevel,hybrid,and hierarchical.
Nirmala,says May 06, 2014
Forming new class from an existing class that is called Inheritance. .
Ankur sahu,says Apr 18,2014
The mechanism of deriving a new class (derived) from an old class (base class) is called inheritance.
Waseem Raza,says Apr 18,2014
The derivation of base class to a new class is called Inheritence.
Your Name Your Email-ID
Your Answer
4. Define polymorphism?
  Polymorphism means one name, multiple forms. It allows us to have more than one function with the same name in a program.It allows us to have overloading of operators so that an operation can exhibit different behaviours in different instances.
SHAKSHI PRAJAPATI,says May 06, 2014
polymorphism means more than one forms.
Saipriyadarshini,says Apr 06, 2014
polymorphism means objects of different class refer to the same message.
krishna, said Jan 30, 2014
Function overloading helps the user to define various functions with the same name but the all the overloaded functions must have different arguments. While operator overloading helps the user to define the given operator in a different way. operator overloading can only be done in class variables.
Your Name Your Email-ID
Your Answer
5. What are the features of C++ different from C?
  • All the features of C are similiar to C++ except some features, such as polymorphism, operator overloading which are supported in C++ but not in C language.
  • Both C and C++ language is similiar in their functionality but C++ provides with more tools and options.
Kalyana Raman, said Mar 05,2014
C++ classes is an extension structures in C. Traditional structures does not provide data hiding i.e. the members of structures can be accessible from anywhere in the program using dot operator whereas specific data can be made hidden from the outside of the class i.e. functions belonging to that class can only access it. Structure variable cannot be concatenated with another structure variable whereas object of one class can be concatenated with object of another class.
Your Name Your Email-ID
Your Answer