• ¿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 1 fuera de 3 páginas
Examen

Unit 4 CMU coding academy test

Document preview thumbnail
Vista previa 1 fuera de 3 páginas

Unit 4 CMU coding academy test Which of the functions is called when z = 12? if (z 12): drawPolygon(z) elif (z == 12): sayHi() else: drawOval('yellow') a. drawOval b. sayHi c. drawPolygon d. None - Answer-b. Which of the following is true about if-elif-else statements? a. After using if, an elif can be added as an additional test. b. The bodies of multiple elif's can run. c. You can use an elif without an if. d. Code in an else body runs if all the tests before it were True. - Answer-a. Which of the following results in a call to onKeyPress? a. Pressing the 'b' key. b. Releasing the 'b' key. c. Calling onKeyRelease('b') in a test case. d. All of the above. - Answer-a. Which of the following is drawn when we press the 'h' key and then release it? def onKeyPress(key): if (key == 'h'): Circle(200, 200, 20, fill='green') def onKeyRelease(key): Star(100, 200, 30, 7, fill='red') a. A green circle and red star are drawn. b. A green circle is drawn. c. A red star is drawn. d. Nothing is drawn. - Answer-a. Which of the following is the correct way to bring a circle named c to the front of the canvas?


Información del documento

Subido en
13 de marzo de 2024
Número de páginas
3
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$8.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

Vendido
2
Seguidores
0
Artículos
992
Última venta
1 año 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.