Home »
MCQs »
Pygame MCQs
Which function is used to initialize pygame modules?
1. Which function is used to initialize pygame modules?
- init()
- initialize()
- load()
- initiate()
Answer
The correct answer is: A) init()
Explanation
To initialize pygame modules, the init()
function is used. Consider the below code statements in which we are importing and initialize the pygame module –
import pygame
pygame.init()