Day 6 Pygame - 1st July

Day 6 Pygame - 1st July

Professional Development

5 Qs

quiz-placeholder

Similar activities

Computer Software II

Computer Software II

Professional Development

8 Qs

fortnite quiz hungary:)

fortnite quiz hungary:)

Professional Development

10 Qs

History of windows

History of windows

5th Grade - Professional Development

6 Qs

Learn about ROBOTNUMBER_100

Learn about ROBOTNUMBER_100

KG - Professional Development

6 Qs

Python Coding

Python Coding

KG - Professional Development

3 Qs

DOM-Intro

DOM-Intro

Professional Development

5 Qs

PUBG

PUBG

3rd Grade - Professional Development

10 Qs

SQL Session 2 Quiz

SQL Session 2 Quiz

Professional Development

10 Qs

Day 6 Pygame - 1st July

Day 6 Pygame - 1st July

Assessment

Quiz

Computers

Professional Development

Easy

Created by

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