Search Header Logo

Creating and using classes in Python

Authored by Adrian Ortiga

Computers

9th - 12th Grade

Used 18+ times

Creating and using classes in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 1 pt

In ​ (a)   programming you write ​ (b)   that represent ​ (c)   things and situations, and you create ​ (d)   based on these classes.

object-oriented
classes
real-world
objects

2.

DRAG AND DROP QUESTION

1 min • 1 pt

Making an object from a class is called ​ (a)   , and you work with ​ (b)   of a class.

instantiation
instances

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the keyword to create a class in Python?

function
variable
method
class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a method in Python?

A conditional statement in Python
A type of variable in Python

A function that is part of a class

A built-in module in Python

5.

HOTSPOT QUESTION

1 min • 1 pt

Highlight the name of the class.

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the special method that Python runs automatically whenever we create a new instance of a class?

7.

HOTSPOT QUESTION

1 min • 1 pt

Highlight the __init__ method.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?