Python L31

Python L31

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Class Procedures Bellringer

Class Procedures Bellringer

8th Grade

10 Qs

Python

Python

7th Grade

12 Qs

Period 6 Agreement

Period 6 Agreement

6th - 8th Grade

11 Qs

Algorithms Continued

Algorithms Continued

8th Grade

15 Qs

Beg Comp First Days Quiz

Beg Comp First Days Quiz

7th - 8th Grade

13 Qs

Class Rules

Class Rules

7th - 8th Grade

12 Qs

learn hausa

learn hausa

7th - 12th Grade

12 Qs

Classroom agreements.

Classroom agreements.

5th - 12th Grade

11 Qs

Python L31

Python L31

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Future Teacher

FREE Resource

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

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?