wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

INTRODUCTION TO OOPS

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following best defines a class?

a)

Parent of an object

b)

Instance of an object

c)

Blueprint of an object

d)

Scope of an object

2.

Pure OOP can be implemented without using class in a program. (True or False)

a)

True

b)

False

3.

Which Feature of OOP illustrated the code reusability?

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

Inheritance

4.

Choose the attributes of Class: time

a)

Hours

b)

second

c)

get Hour

d)

Print Time

5.

Choose the behaviour of Class: time

a)

Hour

b)

Second

c)

PrintTime

d)

getHour

6.

Which of the following is associated with objects?

a)

State

b)

Behaviour

c)

Identity

d)

All the above

7.

What is it called where child object gets killed if parent object is killed?

a)

Aggregation

b)

Composition

c)

Encapsulation

d)

Association

8.

Combining Data and Functions into a single unit is called

a)

Abstraction

b)

Inheritance

c)

Encapsulation

d)

Polymorphism

9.

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

10.

Advantages of OOPs

a)

Code Reusability

b)

Modular Programming

c)

Easy Maintenance

d)

Security