Quiz 2: Animation with Python
Time limit: 10 minutes1. In PictoBlox Python mode, sprite.next_costume() switches the sprite to the previous costume.
1 pt- True
- False
2. Which Python module must be imported to use time.sleep()?
1 pt- math
- random
- time
- os
3. Which function moves a sprite to a specific X and Y position on the Stage?
1 pt- sprite.move(steps)
- sprite.go_to(x, y)
- sprite.set_x(value)
- sprite.change_x(value)
4. Costume names used in switch_costume() are case-sensitive.
1 pt- True
- False
5. What does time.sleep(0.5) do in a Python script?
1 pt- Speeds up the program by 0.5x
- Pauses the program for 0.5 seconds
- Repeats the next line 0.5 times
- Skips the next 0.5 lines of code
6. Match each function with its correct description.
2 ptssprite.show()sprite.hide()sprite.set_size(50)sprite.point_in_direction(90)
- Makes the sprite visible on the Stage
- Hides the sprite from the Stage
- Sets the sprite's size to 50%
- Points the sprite to face right

.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)