Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

INTRODUCTION TO OOP TECHNIQUE

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which Feature of OOP illustrated the code reusability?

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

Inheritance

2.

Choose the attributes of Class: time

a)

Hours

b)

second

c)

get Hour

d)

Print Time

3.

Choose the behaviour of Class: time

a)

Hour

b)

Second

c)

PrintTime

d)

getHour

4.

As a Vehicle user, we know how to use it but its internal working are not known. In OOPs Concept, this principle is known as

a)

Encapsulation

b)

Inheritance

c)

Abstraction

d)

Polymorphism

5.

Advantages of OOPs

a)

Code Reusability

b)

Modular Programming

c)

Easy Maintenance

d)

Security

6.

Apple is a derivation of the Fruit class?

a)

True

b)

False

7.

“Write once and use it multiple time” can be achieved by

a)

(A) redundancy

b)

(B) reusability

c)

(C) modification

d)

(D) composition

8.

Insulation of the data from direct access by the program is called as

a)

(A) Data hiding

b)

(B) Encapsulation

c)

(C) Polymorphism

d)

(D) Abstraction

9.

The ability of a message or function to be displayed in more than one form is ____

a)

Data Abstraction

b)

Inheritance

c)

encapsulation

d)

Polymorphism

10.

The Object Oriented Programing has been developed to overcome the drawbacks of _____ programming.

a)

Procedural

b)

Modular

c)

Functional

d)

both a and b

11.

Basically an object is created from a

a)

Behaviour

b)

Class

c)

Characteristics

d)

Module

12.

The technique of building new classes (derived class) from an existing class (Base class )is called _____

a)

Parent class

b)

Data hiding

c)

Inheritance

d)

Polymorphism

13.

The mechanism by which the data and functions are bound together into a single unit is known as

a)

Class

b)

Object

c)

ENCAPSULATION

d)

POLYMORPHISM

14.

The term is used to describe a programming approach based on classes and objects is

a)

(A) OOP

b)

(B) POP

c)

(C) ADT

d)

(D) SOP

15.

Which of the following is a user defined data type?

a)

int

b)

float

c)

class

d)

object