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 - Memory & Storage

Quiz
•
Professional Development
10 questions
PUBG

Quiz
•
3rd Grade - Professio...
10 questions
SQL Session 2 Quiz

Quiz
•
Professional Development
10 questions
Basic of Computer

Quiz
•
University - Professi...
10 questions
Doing Mr. Warings job for him

Quiz
•
University - Professi...
7 questions
Basic ICT Skills

Quiz
•
Professional Development
10 questions
Perkakasan Komputer

Quiz
•
Professional Development
10 questions
Variable Definition

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade