stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Tracy Comments, Naming, Functions, Effects Flashcards | StudBud
Explore
/
Tracy Comments, Naming, Functions, Effects
Tracy Comments, Naming, Functions, Effects
17 terms
·
StudBud Administration
·
40 plays
Imported from external platform
Flashcards
17 cards
F
Practice quiz
P
Host live
L
Questions
17
Answers
1
How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?
color yellow()pensize(10)
color yellow():pensize(10)
Color(Yellow)thickness(10)
color(“yellow”)pensize(10)
2
Mr. Tull's favorite breakfast food?
waffles
cereal
bagel
omelette
3
What symbol is used at the beginning of an in-line comment?
"
#
!
:
4
MR. Tull's favorite season?
Spring
Fall
Winter
Summer
5
What is true of Tracy’s color command?
The color name must have underscores between words (ex: light_blue)
You can only use hex color codes
The color name must be in quotation marks
There are 10 different colors that Tracy knows
6
A ___________ is
a sequence of instruction s that is continually repeated until a certain condition is reached
.
variable
function
loop
conditional
7
Which is the proper way to call the function three_circles?
def three_circles():
three_circles():
def three_circles:
three_circles()
8
What is the correct way to draw a circle that is filled in?
circle(20)begin_fill()end_fill()
begin_fill()circle(20)end_fill()
circle(begin_fill, 20, end_fill)
circle(20)end_fill()
9
What would be the output of the following command?
circle(50,360,5)
circle(50)
circle(50,35)
circle(360,5)
10
If I am creating a function that is going to draw 2 squares, which of the following would be the best name option?
draw_squares
draw_shapes
Draw_Two_Squares
2_squares
11
Which of the names below follow all naming rules?
4_circles
Draw a Circle
my_function
make_square
12
Comments are:
Written for humans to read and understand
Only needed when a program is over 50 lines
Commands performed by the computer
Always blue when Python recognizes them
13
Which of the following is NOT a way functions make our code more readable?
Function names can describe what the function is completing
Functions break our code into smaller, separate parts
Each function only contains one command
Functions shorten our code by reusing code that has already been written
14
What two things must be included in your function definition?
A function name and function variables
Function variables and commands to be performed
A function name and commands to be performed
Commands to be performed and function arguments
15
What punctuation is needed to begin a multi-line comment?
#
" " "
"
*
16
Where did Mr. Tull and his wife go on their honeymoon?
Bahamas
Hawaii
Alaska
Jamaica
17
Which line is NOT CORRECT for making a yellow color?
color("yellow")
color_yellow
color(rgb 220,233,0)
color("#FFFF00")