Page 73 - Modular_V1.1_Flipbook
P. 73
3. The object-oriented programming is a programming paradigm that focuses on ……………………….
instead of routines or functions.
a. Objects c. Classes
b. Procedures d. Methods
4. Which of the following is an example of an object?
a. Animal c. Vehicle
b. Fan d. Pencil
5. The term polymorphism is made up of two words which are: “poly” and ………………………. .
a. morph c. form
b. phism d. morphism
6. ………………………. overloading is the process of using an operator for more than one action.
a. Function c. Both a and b
b. Operator d. None of these
B. Write ‘T’ for true and ‘F’ for false.
1. All the real-world entities have properties and behaviour. ……………………
2. Properties represent the physical appearance and qualities of an object. ……………………
3. Public members of a class can be accessed in the class in which they are declared. ……………………
4. Access specifiers specify the accessibility level of the data members of a class. ……………………
C. Short answer type questions.
1. What is an object-oriented language?
2. What is encapsulation?
3. Define inheritance.
4. Explain function overloading.
D. Long answer type questions.
1. What is the difference between function overloading and overriding?
2. What is the difference between class and object?
3. What is the difference between sub class and super class?
Subject Enrichment
In the lab
Create a class named “Arithmetic” with four public functions named sum( ), sub( ), mul( ) and
div( ) to perform arithmetic operations.
Teacher's Corner
Discuss the different principles of object-oriented programming languages.
OOP Concepts 71

