C++ Programming Question and Answers

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.
 
Your Name Your Email-ID
Your Answer
2. What is Object Oriented Programming?
 
  • 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.
 
Your Name Your Email-ID
Your Answer
3. What are the main features of OOP?
  The main features of OOP:
  • Encapsulation
  • Polymorphism
  • Inheritance
 
Your Name Your Email-ID
Your Answer
4. What are advantages of OOP?
  The main advantage of OOP is better manageable code that covers following
  • The overall understanding of the software is increases as the distance between the language spoken by developers and that spoken by users.
  • 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.
 
Your Name Your Email-ID
Your Answer
5. What are the different statements in C++?
  The different statements in C++ are :
  • Input/output,
  • Declaration,
  • Assignment,
  • Control structures,
  • Function call,
  • Object message and
  • Return
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 1 of 15