• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 7 pages
Exam (elaborations)

Techsmart Python Unit 3 UPDATED ACTUAL Exam Questions and CORRECT Answers

Document preview thumbnail
Preview 2 out of 7 pages

Techsmart Python Unit 3 UPDATED ACTUAL Exam Questions and CORRECT Answers It doesn't matter because connecting point B to A would be the same as connecting point A to B. - CORRECT ANSWER - When drawing a line, what order should the two points be in? (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. - CORRECT ANSWER - There is a window that is 800 pixels wide and 800 tall. Which of the following points is INSIDE the window?

Content preview

Techsmart Python Unit 3 UPDATED
ACTUAL Exam Questions and CORRECT
Answers
It doesn't matter because connecting point B to A would be the same as connecting point A to B.
- CORRECT ANSWER - When drawing a line, what order should the two points be in?


(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. - CORRECT ANSWER - 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)


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. - CORRECT ANSWER - For
points (300, 150) and (400, 150), what is definitely true about the line that connects them?


[]
The list of points used to define a polygon is surrounded by [ ] symbols in the set of arguments. -
CORRECT ANSWER - Points on a polygon are surrounded by () or [ ]?


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. -
CORRECT ANSWER - 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)


The coordinate would be in the top left corner. - CORRECT ANSWER - Given a window
that is 800 wide and 800 tall, the point (100, 200) would be...


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. - CORRECT ANSWER -
Given a window that is 800 wide and 800 tall, the point (400, 400) would be...


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. - CORRECT
ANSWER - Given a window that is 500 wide and 800 tall, the point (250, 800) would be...



Red, Green, Blue or R, G, B - CORRECT ANSWER - What order are the colors in a color
tuple?


pygame.draw.circle(window, (255, 0, 0), (100, 100), 50, 5) - CORRECT ANSWER - 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)

Document information

Uploaded on
June 18, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STANFORDGRADESS
4.0
(241)
Sold
1716
Followers
113
Items
123756
Last sold
10 hours ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions