Chapter 1 Principles of Object Oriented Programming
Chapter 1 Principles of Object Oriented Programming
a. Program ✓
b. High level Language
c. Object
d. None of these
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
4. Name the programming technique that specifies a series of well-structured steps and procedures
within its programming context to compose a program.
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
a. Member Functions ✓
b. Data Members
c. Both a and b
d. None of these
7. What is the ability of an object to take on many forms called?
a. Polymorphism ✓
b. Encapsulation
c. Abstraction
d. Inheritance
a. Polymorphism
b. Encapsulation
c. Abstraction
d. Inheritance ✓
a. Polymorphism
b. Encapsulation
c. Abstraction
d. class ✓
a. Instructions only ✓
b. Instructions and data
c. Data only
d. None of these
a. Top-down approach ✓
b. Top-down and bottom-up approach
c. Bottom-up approach
d. None of these
a. Top-down approach
b. Top-down and bottom-up approach
c. Bottom-up approach ✓
d. None of these
14. An object belonging to a particular class is known as a/an ........... of that class.
a. Interface
b. Instance ✓
c. Alias
d. Member
15. Objects that share the same attributes and behaviour are grouped together into a/an ...........
a. Interface
b. Instance
c. Alias
d. Class ✓
16. ........... is the technique of binding both data and functions together to keep them safe from
unauthorised access and misuse.
a. Abstraction
b. Inheritance
c. Encapsulation ✓
d. Polymorphism
17. ........... refers to the act of representing essential features without including the background
details.
a. Abstraction ✓
b. Inheritance
c. Encapsulation
d. Polymorphism
18. ........... is the feature by means of which one class acquires the properties of another class.
a. Abstraction
b. Inheritance ✓
c. Encapsulation
d. Polymorphism
a. Abstraction
b. Inheritance
c. Encapsulation
d. Polymorphism ✓
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
6. Low-level languages are closer to computer hardware. T
7. In a procedural language, code and data are held separately. T
8. In object-oriented programming, code and data are held separately. F
9. Wrapping up data and related functions in a single unit represents encapsulation. T
10. The object is also known as an instance. T
11. The class that is derived from another class is called a superclass. F
12. Classes can be derived from other classes. T
13. Inheritance allows a class to acquire the properties of another class. T
14. A class is a blueprint for the attributes and behaviours of a group of objects. T
15. Objects from the same class do not share the same definition of attributes and F
behaviours.
16. In assembly level language, the instructions are given in terms of 0's and 1's. F
17. PASCAL is a structure oriented programming language. T
18. Machine level language requires a translator to convert input instructions to be F
understood by the machine.
19. Compilers and Interpreters are referred to as Language processors T
20. A process according to which a class acquires the characteristics from another class is F
Encapsulation.
21. Procedure oriented program stresses on data. F
22. C++ is also an object oriented programming language. T
23. An object is identified by its characteristics. T
24. Function is a set of objects that share the common state and behaviour. F
25. Encapsulation keeps data safe from outside interference. T
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.
8. The characteristics of an object are represented through data members and behaviour is
represented through member functions.
10. All objects have identity and are distinguishable even if the constituent components are same.
11. An act of using essential features without including background details is called Data
Abstraction.
13. Wrapping of data and function together as a single unit is called Encapsulation.
14. An object has unique identity through which it may differ with some characteristics and
behaviour.
15. The objects may communicate with each other through method/function.
16. In POP, the global data are loosely attached to the function.
17. The process by which a class acquires the property of another class is known as inheritance.
18. In Object Oriented Programming, using a function for many purposes is termed as polymorphism.