wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pygame Zero

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

In Pygame Zero, a sprite is called as

a)

Stage

b)

Screen

c)

Actor

d)

Image

2.

X-axis is

a)

Horizontal

b)

Vertical

3.

Y-axis is

a)

Horizontal

b)

Vertical

4.

On the Pygame Zero Screen, the value of x varies from

a)

0 to WIDTH

b)

0 to HEIGHT

5.

On the Pygame Zero Screen, the value of y varies from

a)

0 to WIDTH

b)

0 to HEIGHT

6.

The value of y at the top of the screen is

a)

0

b)

WIDTH

c)

HEIGHT

7.

The value of y at the bottom of the screen is

a)

0

b)

WIDTH

c)

HEIGHT

8.

The value of x at the left of the screen is

a)

0

b)

WIDTH

c)

HEIGHT

9.

The value of x at the right of the screen is

a)

0

b)

WIDTH

c)

HEIGHT

10.

alien.x+=5

When the above code is executed, in which direction does the alien move?

a)

Left

b)

Right

c)

Up

d)

Down

11.

By default, pos of a sprite denotes its

a)

top left corner

b)

top right corner

c)

center

d)

bottom left corner

e)

bottom right corner

12.

The position is always given as

a)

y,x

b)

x,y

13.

Which function is called whenever a mouse button is clicked?

a)

on_mouse_up

b)

on_mouse_down

c)

on_mouse_click

d)

on_mouse_press

14.

Which function of the clock is used to call a function repeatedly?

a)

clock.schedule_unique

b)

clock.schedule_interval

c)

clock.unschedule

15.

Which function of the clock is used to call a function once after a delay?

a)

clock.schedule_unique

b)

clock.schedule_interval

c)

clock.unschedule

16.

Which function of the clock is used to stop a scheduled function call?

a)

clock.schedule_unique

b)

clock.schedule_interval

c)

clock.unschedule

17.

Variables that are created outside of a function are called

a)

Global Variables

b)

Local Variables

18.

Variables that are created inside a function are called

a)

Global Variables

b)

Local Variables

19.

Local variables can be accessed only inside the created function.

a)

True

b)

False

20.

Global variables can be accessed by all the functions by mentioning the global keyword before the variable.

a)

True

b)

False