• ¿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 15 páginas
Examen

ITCS Final Exam Study Guide 2023

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

What control structure would be best to use in the following code? backward(100) right(90) backward(100) right(90) backward(100) right(90) backward(100) right(90) A function A while loop A for loop An if/else statement - What control structure would be best to use in the following code? backward(100) right(90) backward(100) right(90) backward(100) right(90) backward(100) right(90) A function A while loop A for loop An if/else statement How would I tell Tracy to move forward 100 pixels? - forward(100) When using the circle() command, what value do we put inside the parentheses? - The radius of the circle When Tracy is facing right, from what location does she start drawing her circle? - The bottom of the circle Where does Tracy always start in the grid world? - At the (0,0) coordinate in the middle of the canvas What are the dimensions of Tracy's world? - 400 pixels x 400 pixels Which commands would move Tracy forward 100 pixels? I. forward(100) II. backward(-100) III. forward(-100) - I and II How far does Tracy need to move from the starting position to reach the right side of the canvas? - 200 pixels If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write? - penup() forward(100) Tracy always starts facing which direction? - East If Tracy is facing right, which of the following commands can be used to turn her to face up? I. left(90) II. turn(up) III. right(-90) IV. setposition(90) - I and III If Tracy started facing right, which direction would she be facing after we ran the following code? 1. left(90) 2. left(90) 3. right(90) - Up Which of the following is NOT a reason for loops are useful when writing code? - Loops let us make shapes of multiple sizes The following loop draws 3 circles on the screen. If I wanted to alter this loop to draw 10 circles, how many lines would my code be? 1. for I in range(3): 2. circle(25) 3. forward(50) - 3 lines If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas? - 8 times Which lines of the code below will be repeated 4 times? 1. penup() 2. for I in range(6): 3. pendown() 4. circle(25) 5. forward(50) ard(200) - 3, 4, and 5 Why do certain words change color in Python? - To show that they are recognized as key words If I use the command right(180), which way will Tracy turn? - She will turn around The setposition() command moves Tracy to a coordinate and: - Does not turn her If you wanted Tracy to complete her command immediately, which speed value would you use? - 0 If you want three circles to be drawn next to each other (as seen in the image below), after drawing the first circle, how far would you need to move Tracy before drawing the next circle? - The circle's diameter Comments are: - Written for humans to read and understand What symbol is used at the beginning of an in-line comment? - # What punctuation is needed to begin a multi-line comment? - """ Which of the names below follow all naming rules? 1. my_function 2. Draw a Circle 3. 4_circles 4. make_square - make_square If I am creating a function that is going to draw 2 squares, which of the following would be the best name option? - draw_squares Which of the following is NOT a way functions make our code more readable? - Each function only contains one command What two things must be included in your function definition? - A function name and commands to be performed


Información del documento

Subido en
14 de febrero de 2023
Número de páginas
15
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas
$9.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.
PossibleA
3.9
(154)
Vendido
1089
Seguidores
651
Artículos
14227
Última venta
8 horas 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.