Creating and using classes in Python

Creating and using classes in Python

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Coding Python 1.1. Statements & Variables

Coding Python 1.1. Statements & Variables

7th - 9th Grade

14 Qs

computer science

computer science

11th Grade

13 Qs

Year 10s quiz

Year 10s quiz

9th Grade

20 Qs

Python Quiz

Python Quiz

12th Grade

20 Qs

Python Revision Tour

Python Revision Tour

10th Grade

10 Qs

Python Math

Python Math

1st - 12th Grade

10 Qs

Python

Python

10th - 11th Grade

10 Qs

Season 2 #Spaic Python Weekly Quiz

Season 2 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Creating and using classes in Python

Creating and using classes in Python

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Adrian Ortiga

Used 18+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?