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
10 questions
Computer Revision Quiz
Quiz
•
1st Grade
11 questions
Handling Data: Working with values
Quiz
•
4th Grade
8 questions
I can use loops and conditionals in my algorithms!
Quiz
•
4th Grade
10 questions
Technology in Teaching and Learning
Quiz
•
1st Grade
10 questions
Grade 5th computer quiz
Quiz
•
5th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
6 questions
SCR1 Recap Day 4
Quiz
•
1st Grade
12 questions
Recapitulation ICT Quiz
Quiz
•
1st Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
