Day 6 Pygame - 1st July

Day 6 Pygame - 1st July

Professional Development

5 Qs

quiz-placeholder

Similar activities

Flutter Intermediate

Flutter Intermediate

KG - Professional Development

10 Qs

Squid game

Squid game

KG - Professional Development

10 Qs

Simulation

Simulation

University - Professional Development

10 Qs

Python Panda 2

Python Panda 2

11th Grade - Professional Development

10 Qs

Java Classes and UML Diagram.

Java Classes and UML Diagram.

Professional Development

10 Qs

Python List Methods

Python List Methods

9th Grade - Professional Development

7 Qs

Using Functions

Using Functions

Professional Development

8 Qs

PUBG

PUBG

3rd Grade - 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