• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 2 pages
Exam (elaborations)

CSPB 1300 Chapter 5 - Python Turtle Questions & Answers

Document preview thumbnail
Preview 1 out of 2 pages

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

Content preview

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

Document information

Uploaded on
January 20, 2025
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Bestgrades2
3.8
(5)
Sold
38
Followers
0
Items
5184
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions