Home »
MCQs »
Pygame MCQs
Which is the correct code statement to set the pygame display window of specified size x and y?
2. Which is the correct code statement to set the pygame display window of specified size x and y?
- screenObj = pygame.display.window((x, y))
- screenObj = pygame.display.setMode((x, y))
- screenObj = pygame.display.set_mode((x, y))
- screenObj = pygame.display.set_window((x, y))
Answer
The correct answer is: C) screenObj = pygame.display.set_mode((x, y))
Explanation
The correct code statement to set the pygame display window of specified size x and y is:
screenObj = pygame.display.set_mode((x, y))