0% found this document useful (0 votes)
8 views

Chapter 1 Principles of Object Oriented Programming

Uploaded by

souren_mallicl
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Chapter 1 Principles of Object Oriented Programming

Uploaded by

souren_mallicl
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

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

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

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

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

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
7. What is the ability of an object to take on many forms called?

a. Polymorphism ✓
b. Encapsulation
c. Abstraction
d. Inheritance

8. What is the term that is used to represent hierarchical relationship of generalization?

a. Polymorphism
b. Encapsulation
c. Abstraction
d. Inheritance ✓

9. Name the art of implementing Encapsulation in Object Oriented Programming.

a. Polymorphism
b. Encapsulation
c. Abstraction
d. class ✓

10. What is meant by state of an object?

a. Functions of the object


b. Data Members of the object
c. Content of an object ✓
d. All of these

11. Procedure Oriented Programming gives importance to ...........

a. Instructions only ✓
b. Instructions and data
c. Data only
d. None of these

12. Procedure Oriented Programming mainly uses ...........

a. Top-down approach ✓
b. Top-down and bottom-up approach
c. Bottom-up approach
d. None of these

13. Object Oriented Programming mainly uses ...........

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

19. The ability of a function or object to take on multiple forms is called...........

a. Abstraction
b. Inheritance
c. Encapsulation
d. Polymorphism ✓

20. The term OOP stands for

a. Object Oriented Procedure


b. Object Oriented Packet
c. Object Oriented Programming ✓
d. Object Orientation Procedure

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

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.

8. The characteristics of an object are represented through data members and behaviour is
represented through member functions.

9. A program written in a high level language is also called Source Code.

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.

12. In an Object Oriented Programming, the stress is given on data.

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.

You might also like