stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Tracy Python Review Flashcards | StudBud
Explore
/
Tracy Python Review
Tracy Python Review
17 terms
·
StudBud Administration
·
546 plays
A #programming review of basic #Python concepts we learned using CodeHS and Tracy the Turtle
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
What is the starting value of
i
for the loop pictured below?
50
10
0
5
2
Which of the following function calls is using a parameter?
draw_square(50)
draw_square()
side_length = 50
draw_bead("green")
3
Which of the following best indicates a function that draws a square?
draw_square
Square
draw_square()
square()
4
Which of the following variable names follows all of the variable naming conventions?
SideLength
side_length
variable1
1st_side_length
5
Which of the following correctly asks for and accepts a number from the user?
radius = int(input("Enter the radius: "))
radius = "Enter the radius: "
radius = int("Enter the radius: ")
radius = input(Enter the radius)
6
Which of the following commands will draw a quarter circle?
circle(80, 90)
circle(80, 1/4)
circle(80, 90, 4)
circle(4)
7
What must we always begin a function definition with?
A colon
A tab
The letters "def"
Five spaces
8
What is the final value of
radius
after the following code segment has run?
50
110
10
30
9
What do you expect your grade to be on this first test?
C
A
D
B
10
Which of the following code segments correctly asks for and accepts user input?
color_choice = ("Pick a color: ")
radius = input(What is the radius?)
user = int(input("What is your name? "))
length = ("What is the length? ")
11
Have you finished and turned in your test project?
No
Yes
12
What type of shape will be drawn by the following command: circle(100, 360, 6)?
square
hexagon
circle
triangle
13
Where does Tracy always start, and what direction is she facing?
At the bottom of the screen facing up
In the middle of the screen, facing right
In the middle of the screen, facing up
At the top of the screen, facing left
14
Which of the following is NOT a reason to use comments in computer code?
Leave funny notes for someone to find
Increase code readability
Make your code longer
Inform someone of possible bug locations
15
Why do we use functions in our code?
Make the code shorter
Remove bugs from code
Make the code longer
Make the code easier to read
16
Which of the following circle commands could have drawn the figure below?
circle(80, 180, 4)
circle(80, 180, 3)
circle(80, 360, 4)
circle(80, 180, 6)
17
Where does Python start
i
for a loop (assuming we don't put a minimum value)?
1
0