NEW
Font size
WorksheetsPygame Zero
Total questions: 20
Worksheet time: 10mins
In Pygame Zero, a sprite is called as
Stage
Screen
Actor
Image
X-axis is
Horizontal
Vertical
Y-axis is
Horizontal
Vertical
On the Pygame Zero Screen, the value of x varies from
0 to WIDTH
0 to HEIGHT
On the Pygame Zero Screen, the value of y varies from
0 to WIDTH
0 to HEIGHT
The value of y at the top of the screen is
0
WIDTH
HEIGHT
The value of y at the bottom of the screen is
0
WIDTH
HEIGHT
The value of x at the left of the screen is
0
WIDTH
HEIGHT
The value of x at the right of the screen is
0
WIDTH
HEIGHT
alien.x+=5
When the above code is executed, in which direction does the alien move?
Left
Right
Up
Down
By default, pos of a sprite denotes its
top left corner
top right corner
center
bottom left corner
bottom right corner
The position is always given as
y,x
x,y
Which function is called whenever a mouse button is clicked?
on_mouse_up
on_mouse_down
on_mouse_click
on_mouse_press
Which function of the clock is used to call a function repeatedly?
clock.schedule_unique
clock.schedule_interval
clock.unschedule
Which function of the clock is used to call a function once after a delay?
clock.schedule_unique
clock.schedule_interval
clock.unschedule
Which function of the clock is used to stop a scheduled function call?
clock.schedule_unique
clock.schedule_interval
clock.unschedule
Variables that are created outside of a function are called
Global Variables
Local Variables
Variables that are created inside a function are called
Global Variables
Local Variables
Local variables can be accessed only inside the created function.
True
False
Global variables can be accessed by all the functions by mentioning the global keyword before the variable.
True
False
