TECHSMART PYTHON UNIT 3
(LESSONS 3.1 - 3.3) EXAM 2025
QUESTIONS AND ANSWERS
When drawing a line, what order should the two points be in? - ....ANSWER ...-It
doesn't matter because connecting point B to A would be the same as connecting point
A to B.
There is a window that is 800 pixels wide and 800 tall. Which of the following points is
INSIDE the window?
(500, 400)
(-800, -600)
(1100, 1000)
(0, 800) - ....ANSWER ...-(500, 400)
is inside the window because the first value is between 0 and the width, and the second
value is between 0 and the height.
For points (300, 150) and (400, 150), what is definitely true about the line that connects
them? - ....ANSWER ...-The lines are horizontal.
...©️ 2025, ALL RIGHTS RESERVED 1
, If the y value of two points is the same, that means there is no height difference between
the start and end of the line. Therefore, the line must be horizontal.
Points on a polygon are surrounded by () or [ ]? - ....ANSWER ...-[ ]
The list of points used to define a polygon is surrounded by [ ] symbols in the set of
arguments.
In the following code, highlight the line that opens a window.
import pygame
pygame.init()
window = pygame.display.set_mode([600, 400])
window.fill((255, 255, 255))
b = (0, 0, 0) - ....ANSWER ...-window = pygame.display.set_mode([600, 400])
The set_mode command is used to open a window. It requires the width and height of
the window surrounded by [ ] as an argument. The resulting window can be saved to a
variable.
Given a window that is 800 wide and 800 tall, the point (100, 200) would be... -
....ANSWER ...-The coordinate would be in the top left corner.
Given a window that is 800 wide and 800 tall, the point (400, 400) would be... -
....ANSWER ...-The coordinate would be in the middle.
...©️ 2025, ALL RIGHTS RESERVED 2
(LESSONS 3.1 - 3.3) EXAM 2025
QUESTIONS AND ANSWERS
When drawing a line, what order should the two points be in? - ....ANSWER ...-It
doesn't matter because connecting point B to A would be the same as connecting point
A to B.
There is a window that is 800 pixels wide and 800 tall. Which of the following points is
INSIDE the window?
(500, 400)
(-800, -600)
(1100, 1000)
(0, 800) - ....ANSWER ...-(500, 400)
is inside the window because the first value is between 0 and the width, and the second
value is between 0 and the height.
For points (300, 150) and (400, 150), what is definitely true about the line that connects
them? - ....ANSWER ...-The lines are horizontal.
...©️ 2025, ALL RIGHTS RESERVED 1
, If the y value of two points is the same, that means there is no height difference between
the start and end of the line. Therefore, the line must be horizontal.
Points on a polygon are surrounded by () or [ ]? - ....ANSWER ...-[ ]
The list of points used to define a polygon is surrounded by [ ] symbols in the set of
arguments.
In the following code, highlight the line that opens a window.
import pygame
pygame.init()
window = pygame.display.set_mode([600, 400])
window.fill((255, 255, 255))
b = (0, 0, 0) - ....ANSWER ...-window = pygame.display.set_mode([600, 400])
The set_mode command is used to open a window. It requires the width and height of
the window surrounded by [ ] as an argument. The resulting window can be saved to a
variable.
Given a window that is 800 wide and 800 tall, the point (100, 200) would be... -
....ANSWER ...-The coordinate would be in the top left corner.
Given a window that is 800 wide and 800 tall, the point (400, 400) would be... -
....ANSWER ...-The coordinate would be in the middle.
...©️ 2025, ALL RIGHTS RESERVED 2