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
10 questions
PPT Week5 Day 1

Quiz
•
8th - 12th Grade
20 questions
ICT Basics

Quiz
•
4th - 9th Grade
20 questions
Sejarah & Perangkat Informatika

Quiz
•
4th - 7th Grade
12 questions
Input and output devices

Quiz
•
4th - 10th Grade
11 questions
Programming - Variables/Animation

Quiz
•
6th - 8th Grade
18 questions
Tappy Tap APP QUIZ

Quiz
•
8th Grade
19 questions
Animations and Games L.3-5

Quiz
•
7th - 8th Grade
10 questions
MS Logo

Quiz
•
4th - 9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade