stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Programming with CodeHS Flashcards | StudBud
Explore
/
Python Programming with CodeHS
Python Programming with CodeHS
15 terms
·
StudBud Administration
·
170 plays
Imported from external platform
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
Where does Tracy always start in the grid world?
At (-200, -200)
At (0, 0)
2
Which is the proper way to call the function three_circles?
three_circles():
def three_circles:
three_circles()
def three_circles():
3
The setposition() command moves Tracy to a coordinate and:
turns her to face up
turns her to face down
turns her to face left
does not turn her
4
Which of the names below follow all naming rules?
4_squares
Draw A Circle
draw_square
my_function
5
How many times is
beaded_bracelet
function called in the following code snipped?
1 time
36 times
2 times
0 times
6
Which lines of the code below will be repeated 4 times?
3, 4, 5, and 6
3 and 4
3, 4, and 5
2, 3, and 4
7
Tracy always starts facing which direction?
South
North
East
West
8
What punctuation is needed to begin a multi-line comment?
"""
*
#
"
9
Variables allow us to:
Use english words to communicate with Tracy
Name different parts of our programs
Store information to use in our programs
Change the words Tracy recognizes
10
What would be the output of the following command?
Octogon
Pentagon
Hexagon
Circle
11
This loop draws 3 circles on the screen. If I altered this loop to draw 10 circles, how many lines would my code be?
1
3
10
30
12
What is true of Tracy’s color command?
There are 10 different colors that Tracy knows
The color name must be in quotation marks
You can only use hex color codes
The color name must have underscores between words (ex: light_blue)
13
How would I tell Tracy to move forward 100 pixels?
move(100)
Tracy, move forward 100 pixels
forward(100)
forward 100
14
Top Down Design makes it easier to solve a problem by:
Starting your code from the first command
Starting with the biggest function and then moving to smaller ones
Making each function hold only one command
Breaking the problem down into smaller parts
15
What two things must be included in your function definition?
A function name and function variables
Function variables and commands to be performed
Commands to be performed and function arguments
A function name and commands to be performed