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

CSPB 1300 Chapter 5 - Python Turtle Questions & Answers

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

Which direction does the Turtle face when it is created? A. North B. South C. East D. West - ANSWERSC Consider the following code: import turtle wn = turtle.Screen() alex = turtle.Turtle() rd(150) (90) rd(75) What does the line "import turtle" do? A. It creates a new turtle object that can be used for drawing. B. It defines the module turtle which will allow you to create a Turtle object and draw with it. C. It makes the turtle draw half of a rectangle on the screen. D. Nothing, it is unnecessary. - ANSWERSB Why do we type turtle.Turtle() to get a new Turtle object? A. This is simply for clarity. It would also work to just type "Turtle()" instead of "turtle.Turtle()". B. The period (.) is what tells Python that we want to invoke a new object. C. The first "turtle" (before the period) tells Python that we are referring to the turtle module, which is where the object "Turtle" is found. - ANSWERSC True or False: A Turtle object can have any name that follows the naming rules from Chapter 2. A. True B. False - ANSWERSA True or False: You can only have one active turtle at a time. If you create a second one, you will no longer be able to access or use the first. A. True B. False - ANSWERSB

Vista previa del contenido

CSPB 1300 Chapter 5 - Python Turtle
Questions & Answers
Which direction does the Turtle face when it is created?
A. North
B. South
C. East
D. West - ANSWERSC

Consider the following code:
import turtle wn = turtle.Screen() alex = turtle.Turtle() alex.forward(150) alex.left(90)
alex.forward(75)
What does the line "import turtle" do?
A. It creates a new turtle object that can be used for drawing.
B. It defines the module turtle which will allow you to create a Turtle object and draw
with it.
C. It makes the turtle draw half of a rectangle on the screen.
D. Nothing, it is unnecessary. - ANSWERSB

Why do we type turtle.Turtle() to get a new Turtle object?
A. This is simply for clarity. It would also work to just type "Turtle()" instead of
"turtle.Turtle()".
B. The period (.) is what tells Python that we want to invoke a new object.
C. The first "turtle" (before the period) tells Python that we are referring to the turtle
module, which is where the object "Turtle" is found. - ANSWERSC

True or False: A Turtle object can have any name that follows the naming rules from
Chapter 2.
A. True
B. False - ANSWERSA

True or False: You can only have one active turtle at a time. If you create a second one,
you will no longer be able to access or use the first.
A. True

Información del documento

Subido en
20 de enero de 2025
Número de páginas
2
Escrito en
2024/2025
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.
Bestgrades2
3.8
(5)
Vendido
38
Seguidores
0
Artículos
5184
Última venta
1 mes 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