No student devices needed. Know more
22 questions
How does Tracy start when you first open up Python?
Pen up and facing up
Pen up and facing right
Pen down and facing down
Pen down and facing right
Which of the following would move Tracy 50 pixels backwards? (Select two)
forward(50)
backward(50)
forward(-50)
backward(-50)
Which of the following is not an accurate description of the location of each point in Tracy's grid world?
The point (0,0) is in the center of the screen.
The point (200,-200) is at the bottom right corner of the screen
The point (-200,0) is on the bottom of the screen
The point (-200,-200) is at the bottom left corner of the screen
The command circle(30) will tell Tracy to draw a circle of diameter 30 units.
True
False
Which command would make Tracy execute an action the quickest?
speed(0)
speed(1)
speed(5)
speed(10)
The code shown draws 3 circles on the screen. If I wanted to alter this loop to draw 15 circles, how many lines would my code be?
1
3
10
30
The following program will have Tracy draw a square with each side length measuring 60 pixels.
True
False
If Tracy was facing up, what direction would she be facing if the following code was run?
up
down
left
right
Using the given code, which lines of code will be repeated three times?
3 and 4
3, 4, 5, and 6
2, 3, 4, and 5
3, 4, and 5
I want Tracy to cross from one side of the screen to another. The code shown won't do that. Write a correct line of code, including which step number you're changing, to make Tracy go all the way across the screen. [Note there is more than one correct answer.]
What would be the result of this program?
4 circles of radius 50 extending all the way across the screen.
2 circles of radius 50 extending halfway across the screen.
4 circles of radius 100 extending all the way across the screen.
2 circles of radius 100 extending halfway across the screen.
All of the following are valid Python codes except:
for i in range(40):
forward(40)
circle(40)
up(40)
Which of the following is NOT a reason for loops are useful when writing code?
Loops make our code more efficient.
Loops make our code easier to read
Loops make it easier to alter code once it’s written
Loops let us make shapes of multiple sizes
What are the scale dimensions of Tracy’s coordinate world?
1 box = 10 pixels
1 box = 20 pixels
1 box = 40 pixels
1 box = 100 pixels
Which of the following is not true?
The penup command tells Tracy to stop drawing.
Tracy always starts drawing a circle from the top of the circle when facing right.
The command forward(25) and backward(-25) result in the same spot for Tracy.
The setposition command allows Tracy to start anywhere on the grid.
What's the name of the turtle we are using to learn Python Turtle Graphics? (Please don't get this wrong)
Tyrone
Travis
Tracy
Tricia
What is the name of the section in CodeHS you can use to start your own code from scratch?
Sandbox
Playground
Compiler
Playroom
Which is not true regarding the Python programming language?
It is widely used in YouTube videos.
It is widely used in Google algorithms.
It's designed only for advanced coders.
It can create games, analyze literature, and provide a gateway to learning other programming languages.
You get badges after completing certain required programs in CodeHS.
True
False
1. Which of the following pieces of code will make Tracy do the following actions three times: go forward, change colors, and then turn around.
for i in range(4):
forward(30)
color("blue")
left(180)
for i in range(3):
forward(30)
color("blue")
left(180)
color("red")
for i in range(3):
backward(30)
color("blue")
left(180)
forward(30)
color("blue")
left(180)
forward(30)
color("green")
left(180)
forward(30)
color("orange")
left(180)
Which of the following statements are true about for loops?
A. By default, the range function starts at 0
B. Using for i in range(4) will result in i taking the values 0, 1, 2, 3, 4
C. For loops let you repeat something any number of times
D. Statements in a for loop do not need to be indented
E. It is not possible to have the range value count 6, 12, 18, 24
F. It is not possible to have the range values count 1, 2, 4, 8, 16
A C F
A and C
A B C E F
A B C F
What is the difference between defining and calling a function?
There is no difference.
Defining a function means you are teaching the computer a new word. Calling a function means you are commanding the computer to complete defined actions.
Calling a function means you are teaching the computer a new word. Defining a function means you are commanding the computer to complete defined actions.
Defining a function must be done each time you want to use the function. Calling a function can only happen once in your code.
Explore all questions with a free account