Python Classes and Objects  ||  Python Tutorial  ||  Learn Python Programming

Python Classes and Objects || Python Tutorial || Learn Python Programming

Assessment

Interactive Video

10th Grade

Hard

Created by

Catherine L Hulcher

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To create a class in Python

all the answers are correct

the sentence ends in a colon

the class name should begin with a capital

you must use the keyword class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A function inside a class is called

class

function

 

method

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

init is short for

initial

initialization

init__

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is self?

a reference to the new object that is being created.

a short cut name for a computer

a name given to the user

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A docstring is declared using """ at the beginning and ending of the comment.

True

False