• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

Techsmart Python Unit 3 Test Questions And Correct Answers

Document preview thumbnail
Vista previa 2 fuera de 6 páginas

TECHSMART PYTHON UNIT 3 TEST QUESTIONS AND CORRECT ANSWERS.....

Vista previa del contenido

TECHSMART PYTHON UNIT 3 TEST QUESTIONS
AND CORRECT ANSWERS




It doesn't matter because connecting point B to A would be the same as
connecting point A to B. - 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. - 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. -
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. - 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. - 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. - 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.
- 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. - ANSWER Given a window that is 500 wide and 800
tall, the point (250, 800) would be...

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

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

5 is the final argument in the draw circle call is line width, which makes a shape
filled or unfilled. - ANSWER Using the same line of code, what does the final
argument represent?

pygame.draw.circle(window, (0, 0, 0), (100, 100), 50, 5)

Información del documento

Subido en
11 de junio de 2025
Número de páginas
6
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido
$14.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
luzlinkuz
3.8
(334)
Vendido
1627
Seguidores
853
Artículos
32914
Última venta
5 días hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes