PyGame Zero - 3

PyGame Zero - 3

7th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

Computer Hardware 8th

Computer Hardware 8th

6th - 8th Grade

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

LATIHAN SOAL INFORMATIKA BAB 9 KELAS VII

LATIHAN SOAL INFORMATIKA BAB 9 KELAS VII

7th Grade

20 Qs

Keys

Keys

6th - 7th Grade

13 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Administrasi Sistem jaringan KD1

Administrasi Sistem jaringan KD1

1st - 10th Grade

20 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Mid-Tern Exam's Review

Mid-Tern Exam's Review

8th Grade

15 Qs

PyGame Zero - 3

PyGame Zero - 3

Assessment

Quiz

Computers

7th - 8th Grade

Practice Problem

Hard

Created by

Baskaran J

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which is the right way to move the elevator downwards when the down button is pressed?

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

Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?