wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

OOPS - PYTHON

Total questions: 11

Worksheet time: 4mins

Name
Class
Date
1.

OOPs

a)

Object Oriented Program

b)

Object Oriented Programming

c)

Object Opted Programming

d)

Objective Oriented Programming

2.

What create objects?

a)

Classes

b)

Functions

c)

Methods

d)

Modules

3.

What are classes?

a)

Blueprints/

Prototypes that defines methods and attributes

b)

A thing which creates objects

c)

A set of attributes and methods

d)

A Blueprint of methods

4.

What are Objects

a)

Instances of a Class

b)

Calling of a class

c)

Identity of a class

d)

Usables of a class

5.

What are Attributes

a)

Functions of a class

b)

Variables of a class

c)

Instance of a class

d)

Variables of a code

6.

What do Objects represent?

a)

Uniqueness

b)

Identity

c)

Instance

d)

Class

7.

What refers to the State of a class?

a)

Attributes

b)

Methods

c)

Constructors

d)

Self

8.

What refers to the behavior of the class

a)

Attribute

b)

Class

c)

Object

d)

Method

9.

what is self?

a)

Self represents the instance of the class in the class

b)

Binds the Attr and methods

c)

A default thing in classes with no use

d)

None of the Above

10.

How to call a method?

a)

Obj.method

b)

Obj.method()

c)

Method(object)

d)

Method.object

11.

Making of a class

a)

class NAME:

b)

class NAME():

c)

class (NAME):

d)

class: Name()