wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OOP Basic Concepts

Total questions: 20

Worksheet time: 3mins

Name
Class
Date
1.

Which of the following is correct with respect to the OOP concept in Python?

a)

Objects are real-world entities while classes are not real.

b)

Classes are real-world entities while objects are not real.

c)

Both objects and classes are real-world entities.

d)

Both objects and classes are not real.

2.

What is wrapping of data into a single unit called class called?

a)

Abstraction

b)

Polymorphism

c)

Encapsulation

d)

Inheritance

3.

What is the process in which objects of one class can link and share some common properties from the objects of another class?

a)

Abstraction

b)

Inheritance

c)

Polymorphism

d)

Encapsulation

4.

What is the process of using a function for more than one purpose that allows the use of different internal structures of the object by keeping the same external interface?

a)

Inheritance

b)

Polymorphism

c)

Abstraction

d)

Encapsulation

5.

Choose the Object oriented programming languages from the following:

a)

Turing

b)

Java

c)

Pascal

d)

Python

6.

What is an instance of or a copy of a class?

a)

Class

b)

Object

c)

Attribute

d)

Interface

7.

What is blue print that defines certain characteristics and behavior that is simply a representation of different types of objects?

a)

Class

b)

Object

c)

Attribute

d)

Characteristics

8.

What allows us to consider complex ideas while ignoring irrelevant detail that could confuse us?

a)

Abstraction

b)

Encapsulation

c)

Inheritance

d)

Polymorphism

9.

Which one(s) is/are an object?

a)

public class Rectangle

b)

Student ada = new Student();

c)

Rectangle rect = new Rectangle(10, 3);

d)

ada.reName();

10.

What is move in the following:

p1.move(2,4);

a)

Class

b)

Object

c)

Method

d)

Instance

11.
How many objects can be made from a class? 
a)
None, you make classes from objects
b)
one
c)
As many as you want
d)
All of the above
12.
What is the difference between a class and an object?
a)
A class is a blueprint to make an object
b)
An object is a blueprint to make a class
c)
A blueprint is an object to make a class
d)
Blueprint class is an object make a
13.
An object is an instance of a:
a)
parameter
b)
method
c)
class
d)
application
14.

You can instantiate an object more than once?

a)

True

b)

False

15.

Car, Fruit, Ball & Pet are all examples of potential classes?

a)

True

b)

False

16.

Which of the following might be identified as properties of the Car Class?

a)

Colour

b)

Blue

c)

No. of Doors

d)

No. of Wheels

17.

A dog might be an instance of the Pet class?

a)

True

b)

False

18.

Can dog also be a class?

a)

Yes

b)

No

19.

What is instantiation in python?

a)

The creation of an instance of a class.

b)

The transfer of the characteristics of a class to other classes that are derived from it.

c)

A variable that is defined inside a method and belongs only to the current instance of a class.

d)

A unique instance of a data structure that's defined by its class. An object comprises both data members (class variables and instance variables) and methods.

20.

What is a method in python?

a)

a way of doing something

b)

a special kind of function that is defined in a class definition

c)

the creation of an instance of a class

d)

orderliness of thought or behavior; systematic planning or action