Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Object Oriented Programming

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

A blueprint which can be used to create an object. Contains methods and variables.

a)

Constructors

b)

Classes

c)

Objects

d)

Properties

2.

A child class gains methods and properties from the parent class.

a)

Inheritance

b)

Objects

c)

Attributes

d)

Methods

3.

A special kind of attribute. Has a "getter" (__get__), a "setter" (__set__), and "delete" (__delete__) method.

a)

Objects

b)

Properties

c)

Methods

d)

Attributes

4.

Created when a new object is instantiated and isn't available to other objects. They are accessible by methods but declared outside methods.

a)

Instance Variable

b)

Methods

c)

Inheritance

d)

Classes

5.

Used in objects to hold data. They are similar, but different, from a variable.

a)

Class Variables

b)

Objects

c)

Attributes

d)

Constructors

6.

A special method that Python uses to instantiate an instance or object. They assign values to instance variable, and are always named "__init__()"

a)

Instances

b)

Attributes

c)

Constructors

d)

Methods

7.

Created inside a class but outside any methods. Can be changed by calling the class variable, but changes may impact all places that the variable is used.

a)

Methods

b)

Constructors

c)

Instance Variables

d)

Class Variables

8.

Functions available only to objects of that type. Defined within the class and perform some actions that are helpful to that specific type of object.

a)

Classes

b)

Inheritance

c)

Constructors

d)

Methods

9.

An object recreated by following the "blueprint" defined by the class. It "inherits" the methods and variables from the class it was created from, however the data may be different.

a)

Objects

b)

Properties

c)

Instances

d)

Attributes