Python L31 Class Inheritance Snake Food
Quiz
•
Computers
•
1st - 5th Grade
•
Practice Problem
•
Easy
Future Teacher
Used 1+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does class inheritance mean in Python?
Copying code from another file
A child class borrowing features from a parent class
Creating a new function automatically
Making variables private
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to call the parent class’s constructor?
inherit()
parent()
super()
__init__()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In our game, which class does Food inherit from?
Snake
Turtle
Scoreboard
Random
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you forget to call super().__init__() inside the Food class?
The program crashes immediately
The Food object won’t have Turtle’s features
The food becomes invisible permanently
The food will appear in the same position
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module do we import to make food appear in random positions?
math
random
time
os
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Inheritance helps us reuse code and write less.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The Food class must define its own .shape() and .color() methods from scratch.
True
False
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
ICT Revision Grade 3
Quiz
•
3rd Grade
15 questions
KS3_Data Representations (from clay to silicon)
Quiz
•
1st - 3rd Grade
10 questions
First step to Internet 5B1
Quiz
•
5th Grade
15 questions
MS Office
Quiz
•
1st - 2nd Grade
11 questions
Gr3-Scratch - Revision
Quiz
•
3rd - 5th Grade
10 questions
Powerpoint
Quiz
•
3rd - 6th Grade
15 questions
Computer 3 Enrichment Activity
Quiz
•
3rd Grade
10 questions
Walking with Logo Turtle
Quiz
•
3rd Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
