Tech smart Python Unit 3 UPDATED ACTUAL Exam Questions
and CORRECT Answers
When drawing a line, what order should the two points be in? - (ANSWERS)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) - (ANSWERS)(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?
- (ANSWERS)The lines are horizontal.
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 [ ]? - (ANSWERS)[ ]
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) - (ANSWERS)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... - (ANSWERS)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... - (ANSWERS)The
coordinate would be in the middle.
Because 40 is halfway between 0 and 800, the x coordinate is halfway across the window. The
y coordinate is half the height, which means it is in the middle.
, Tech smart Python Unit 3 UPDATED ACTUAL Exam Questions
and CORRECT Answers
Given a window that is 500 wide and 800 tall, the point (250, 800)!@#$%%%%% would be... -
(ANSWERS)Because 250 is halfway between 0 and 500, the x coordinate is halfway %%%%%% across the
window. The y coordinate is equal to the height, which means it is at the bottom of the window.
What order are the colors in a color tuple? - (ANSWERS)Red, Green, Blue or R, G, B
The code below draws the outline of a black circle. Change it so it draws a filled-in red circle.
(Leave the size and location the same.)
Pygame.draw.circle(window, (0, 0, 0), (100, 100), 50, 5) -
(ANSWERS)pygame.draw.circle(window, (255, 0, 0), (100, 100), 50, 5)
Using the same line of code, what does the final argument represent?
Pygame.draw.circle(window, (0, 0, 0), (100, 100), 50, 5) - (ANSWERS)5 is the final argument in
the draw circle call is line width, which makes a shape filled or unfilled.
What is a tuple? - (ANSWERS)A tuple is a way of grouping multiple values together into a single
value. The values are surrounded by parentheses and separated by commas.
Highlight all the tuples in the following lines of code.
Import pygame
Pygame.init()
Window = pygame.display.set_mode([600, 400])
Window.fill((255, 255, 255))
Pygame.draw.line(window, b, (0, 0), (200, 300)
B = (0, 0, 0) - (ANSWERS)(255, 255, 255)
(0, 0), (200, 300)
(0, 0, 0)
What do these color tuples have in common?
(10, 10, 10) and (200, 200, 200) - (ANSWERS)A tuple with three integer values between 0 and
255 is a color. Colors where all three values are the same are shades of gray.
In drawing, what is the difference between a circle and an ellipse? - (ANSWERS)Circles and
ellipses are both round shapes. But a circle is always a circle and is drawn based on its center
and radius, whereas an ellipse is drawn based on a rectangle defined earlier.
What is animation? - (ANSWERS)The illusion of motion is created by switching very quickly
between still images that are slightly different from each other.
and CORRECT Answers
When drawing a line, what order should the two points be in? - (ANSWERS)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) - (ANSWERS)(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?
- (ANSWERS)The lines are horizontal.
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 [ ]? - (ANSWERS)[ ]
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) - (ANSWERS)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... - (ANSWERS)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... - (ANSWERS)The
coordinate would be in the middle.
Because 40 is halfway between 0 and 800, the x coordinate is halfway across the window. The
y coordinate is half the height, which means it is in the middle.
, Tech smart Python Unit 3 UPDATED ACTUAL Exam Questions
and CORRECT Answers
Given a window that is 500 wide and 800 tall, the point (250, 800)!@#$%%%%% would be... -
(ANSWERS)Because 250 is halfway between 0 and 500, the x coordinate is halfway %%%%%% across the
window. The y coordinate is equal to the height, which means it is at the bottom of the window.
What order are the colors in a color tuple? - (ANSWERS)Red, Green, Blue or R, G, B
The code below draws the outline of a black circle. Change it so it draws a filled-in red circle.
(Leave the size and location the same.)
Pygame.draw.circle(window, (0, 0, 0), (100, 100), 50, 5) -
(ANSWERS)pygame.draw.circle(window, (255, 0, 0), (100, 100), 50, 5)
Using the same line of code, what does the final argument represent?
Pygame.draw.circle(window, (0, 0, 0), (100, 100), 50, 5) - (ANSWERS)5 is the final argument in
the draw circle call is line width, which makes a shape filled or unfilled.
What is a tuple? - (ANSWERS)A tuple is a way of grouping multiple values together into a single
value. The values are surrounded by parentheses and separated by commas.
Highlight all the tuples in the following lines of code.
Import pygame
Pygame.init()
Window = pygame.display.set_mode([600, 400])
Window.fill((255, 255, 255))
Pygame.draw.line(window, b, (0, 0), (200, 300)
B = (0, 0, 0) - (ANSWERS)(255, 255, 255)
(0, 0), (200, 300)
(0, 0, 0)
What do these color tuples have in common?
(10, 10, 10) and (200, 200, 200) - (ANSWERS)A tuple with three integer values between 0 and
255 is a color. Colors where all three values are the same are shades of gray.
In drawing, what is the difference between a circle and an ellipse? - (ANSWERS)Circles and
ellipses are both round shapes. But a circle is always a circle and is drawn based on its center
and radius, whereas an ellipse is drawn based on a rectangle defined earlier.
What is animation? - (ANSWERS)The illusion of motion is created by switching very quickly
between still images that are slightly different from each other.