C++ Programming

Prepare for your examination
1 2 3 4 5

Q.What is Procedure oriented language

Conventional programming, using high-level language such as COBOL, FORTRAN and C are commonly known as Procedure oriented language (POP). In POP number of functions are written to accomplish the tasks such as reading, calculating and printing. In procedural programming languages emphasis is given on procedure.

Q.What are the basic concepts of OOS

  • Objects
  • Classes
  • Data abstraction and Encapsulation
  • Inheritance
  • Polymorphism
  • Dynamic binding
  • Message passing

Q.What are objects?

Objects are basic run-time entities in an object-oriented system. They may represent a person, a place, a bank account, a table of data or any item that the program has to handle. Each object has the data and code to manipulate the data and theses objects interact with each other.

Q.What is a class?

Class is a user defined data type. Class is a group of similar objects. Class is a template.

Q.What is encapsulation

Wrapping up of data and function within the structure is called as encapsulation.

Q.What is data abstraction

Abstraction feature hide complex information and show only essential information to user. Let's take one real life example: while driving car when we press break paddle car gets stopped. Now we don't know what is internal mechanism of break. All we know is, to stop car apply break.

When we use class, all we need to know is purpose of functions/methods defined in class. Programmer who wants to use class, no need to understand code for methods.

Q.What is data hiding

Data members inside class can be declared as private. It means those data members can't be accessed directly outside of the class. Functions/methods defined in class then used to access or manipulate private data members of class.

Q.What is late binding

Binding refers to the linking of a procedure to the code to be executed in response to the call. Dynamic binding means that the code associated with a given procedure call is not known until the time of the call at the run-time.

Q.What are tokens

The smallest individual units in a program are known as tokens. C++ has the following tokens,

Q.What are keywords

The keywords implement specific C++ language features. They are explicitly reserved identifiers and cannot be used as names fro the program variables or other user defined program elements. Eg: go to, If, struct , else ,union etc.

1 2 3 4 5