Search Header Logo

Python L31

Authored by Future Teacher

Computers

6th - 8th Grade

Python L31
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the parent class of the Food class?

Snake

Screen

Turtle

Shape

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The super().__init__() line allows the Food class to access all methods from the Turtle class.

True

False

3.

DRAG AND DROP QUESTION

1 min • 1 pt

In the code class Food(Turtle):, Turtle is the ​ (a)   class and Food is the ​ (b)   class.

parent
object

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inherited from the Turtle class in the Food class?

Only the shape

Methods like .goto(), .color(), .penup()

Only the refresh method

Only the random module

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The refresh() method is inherited from the Turtle class.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is called immediately after setting the shape, color, and size of the food?

self.refresh()

self.speed()

self.color()

self.move()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The super() function is used to call the ________ class’s constructor.

parent

superclass

base

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?