• ¿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

Python Programming Exam Review With 100% Correct And Verified Answers

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

Python Programming Exam Review With 100% Correct And Verified Answers forward(distance) - Correct Answer-moves turtle forward distance in current direction backward(distance) - Correct Answer-moves turtle backward in current direction circle(radius) - Correct Answer-moves the turtle in a circle. Within the parentheses, you write the radius of the circle. penUp, penDown - Correct Answer-controls whether or not Tracy is leaving a trail. What are the dimensions of Tracy's world? - Correct Answer-400 pixel tall x 400 pixels wide left(angle), right(angle) - Correct Answer-turns Tracy either left or right the inputted degrees For loops - Correct Answer-used to repeat commands a certain number of times. What is the code for a for loop? - Correct Answer-for i in range(times to repeat): Indented commands here setposition(x,y) - Correct Answer-moves Tracy to the designated coordinate. speed(number 0-10) - Correct Answer-Sets how quickly Tracy will move through the code. speed(1)=Slowest speed(5)=Medium speed(10)=Fastest speed(0)=Immediate # comment here """ comment here '''' - Correct Answer-In-line comment Multi-line comment What is the code for defining? How do you call it? - Correct Answer-def function_name_here(): indented code here function_name() color("color name") - Correct Answer-Changes Tracy's trail color. pensize(#) - Correct Answer-Changes Tracy's trail thickness. begin_fill() - Correct Answer-Starts filling in drawn shapes. end_fill() - Correct Answer-Stops filling in drawn shapes. circle(radius, extent, steps) - Correct Answer-Can control the radius, degrees, and number of points of a circle. Top Down Design - Correct Answer-a problem solving approach (also known as stepwise design) in which you break down a system to gain insight into the sub-systems that make it up. variable_name = value - Correct Answer-Assigns a variable ex. color = input("Enter a color: ") for i in range(starting_num, ending_num, increase_by): - Correct Answer-alters the value of i by including a starting value, ending value, and a value to increase by on each iteration if statement - Correct Answer-The common programming structure that implements "conditional statements". Ex. if condition: If true, run the commands here(indented) elif condition: If first condition is false, if true, run the commands here else: If no other conditions are true, if true, run the commands here while loop - Correct Answer-a programming construct used to repeat a set of commands (loop) as long as (while) a boolean condition is true ex. while condition: Run commands here (indented)


Información del documento

Subido en
29 de marzo de 2024
Número de páginas
6
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$12.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.
Vendarsol
4.0
(75)
Vendido
206
Seguidores
81
Artículos
7391
Ú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

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.