Which is the right way to move the elevator downwards when the down button is pressed?
PyGame Zero - 3

Quiz
•
Computers
•
7th - 8th Grade
•
Hard
Baskaran J
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
if keyboard.down:
player.x+=3
if keyboard.down:
player.y-=3
if keyboard.down:
player.y+=3
if keyboard.down:
player.x-=3
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the correct way to check if the player has collided with an enemy in the game?
if player.collide(enemy):
game_over()
if player.hit(enemy):
game_over()
if player.crash(enemy):
game_over()
if player.touch(enemy):
game_over()
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Can you help Aarush by selecting the correct syntax to draw a line in pygame zero?
screen.draw.line(start, end, (r, g, b))
screen.draw.line((r, g, b)start, end)
screen.draw.line(start,(r, g, b), end)
screen.draw.line(end,(r, g, b), start)
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
You're teaching a coding class and you want to create a function that will show "click" on the screen whenever a student clicks the mouse. Which of the following functions should you use?
def onmousedown():
print("Click")
def on_mouse_down():
print("Click")
def on_mouse_click():
print("Click")
def onmouseclick():
print("Click")
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What class is used to create a sprite (like an image of a character) in Pygame Zero?
Image
Sprite
Actor
Character
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
If dots is a list of dot objects, what does dots[i] refer to?
The last dot object
The ith dot object in the list
The dot object at position 8
The first dot object
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is the purpose of the function screen.draw.text(str(i+1),(dots[i].x+8,dots[i].y+8)) in the code snippet below?
It showcases the index number of the dot at a position slightly shifted from the dot's coordinates
It creates a new dot along with a label
It illustrates the index of the dot at a position slightly offset from the dot's location
It refreshes the position of the dot
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Pygame Shapes

Quiz
•
8th Grade
20 questions
AQA GCSE Computer Science - 3.3.6 Representing images

Quiz
•
8th Grade
16 questions
Revision MIT App Inventor after lvl3 clouds

Quiz
•
5th - 12th Grade
10 questions
9 сынып Pygame

Quiz
•
8th Grade
10 questions
Scratch Quiz

Quiz
•
KG - 8th Grade
20 questions
Python Turtle Flags Lesson

Quiz
•
8th Grade
10 questions
Strumenti Digitali per la Didattica

Quiz
•
7th Grade
10 questions
Animations in Animate CC

Quiz
•
6th - 7th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade