Chapter 1
Chapter 1
Principles of Object
Oriented Programming
A. Tick () the correct option.
1. A set of instructions given to a computer to do a particular task.
a. Program b. High level Language
c. Object d. None of these
Ans. a. Program
2. An object is represented by two attributes, out of which one is characteristics and the other one
is ___________.
a. Behaviour b. Situation
c. Abstraction d. Encapsulation
Ans. a. Behaviour
3. Name the programming technique that implements programs as an organized collection of
interactive objects.
a. Procedure Oriented Programming b. Modular Programming
c. Object Oriented Programming d. None of these
Ans. c. Object Oriented Programming
4. Name the programming technique that specifies a series of well-structured steps and procedures
within its programming context to compose a program.
a. Procedure Oriented Programming b. Modular Programming
c. Object Oriented Programming d. None of these
Ans a. Procedure Oriented Programming
5. Name the characteristics of Object Oriented Programming that hides the complexity and
provides a simple interface.
a. Encapsulation b. Polymorphism
c. Abstraction d. Inheritance
Ans. c. Abstraction
6. What is the behaviour aspect of an object represented by?
a. Member Functions b. Data Members
c. Both a and b d. None of these
Ans. a. Member Functions
B. State whether the following statements are True (T) or False (F).
1. Encapsulation refers to the art of hiding the complexities and giving a simple interface. F
2. Procedure Oriented Language follows top down approach. T
3. Java is an example of Object Oriented Language. T
4. Hiding the complexity and giving a simple interface is called Inheritance. F
5. Abstraction is same as Encapsulation. F
C. Fill in the blanks.
1. An object is an identity with certain characteristic and behaviour.
2. The values/attributes of the characteristics of an object are called the state of an object.
3. All the complexities of a program should be encapsulated in such a way so that Abstraction is
obtained.
4. Inheritance allows us to encompass the parent class’ state and behaviours into its child.
5. Poly-means many and Morphism means forms.
6. Encapsulation is a principle of Object Oriented Programming (OOP) that binds together
characteristics and behaviour of an object.
7. Abstraction is the reduction of a particular body of data to a simplified representation of
the whole.
SECTION A