Day 6 Pygame - 1st July

Quiz
•
Computers
•
Professional Development
•
Easy
Coding Department
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does random.randint(0, 300) do?
Returns a float between 0 and 300
Returns an error
Returns a random integer from 0 to 299
Returns a random integer between 0 and 300 (inclusive)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the most common use of collision detection in a game?
To play background music
To detect if the player pressed a key
To detect if the player hits an enemy or collects an item
To start the game loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the code if ball.colliderect(player_rect):, what happens when the condition is True?
A new ball is added
The player moves faster
A collision is detected and the ball is removed
The screen changes color
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which shape does pygame.draw.ellipse() draw in the given example?
A triangle
A circle/oval (ellipse)
A rectangle
A line
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of checking ball.y > HEIGHT in the game loop?
To reverse the ball's direction
To add gravity
To remove the ball if it leaves the screen
To increase the ball's speed
Similar Resources on Wayground
10 questions
IT ENGLISH: Research Project Topics - Backend Development

Quiz
•
Professional Development
5 questions
M9 Mulesoft Controlling Event Flows

Quiz
•
Professional Development
8 questions
SQL Join

Quiz
•
Professional Development
5 questions
M12 Mulesoft triggering flows

Quiz
•
Professional Development
10 questions
Unity.3

Quiz
•
Professional Development
8 questions
Youth Tech Game Fundamental 1

Quiz
•
Professional Development
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
บทที่ 6 การใช้งานโปรแกรมระบบปฏิบัติการ Windows 10 เบื้องต้น

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...