No student devices needed. Know more
11 questions
What are the line #'s of the function definition?
38
39
40
41
43
What are the line #'s of the function body?
38
39
40
41
43
What are the line #'s of the function call?
38
39
40
41
43
Select the function parameters
x
y
color
140
'red'
Select the function arguments
x
y
color
140
'red'
What is the function name?
def drawCompartment(x, y, color):
def drawCompartment
drawCompartment
drawCompartment(140, 105, 'red')
The function body must be indented.
True
False
How many times is line 39 executed?
1
8
9
Depends
What goes in the blank to make the function work as intended
x , y
mousex, mousey
mouseX, mouseY
What goes in the blank to draw the stem from position (200, 300) to where the mouse is clicked
200, mouseX, 300, mouseY
200, 300, mouseX, mouseY
200, 300, x, y
What code goes on Line 16 to change the color of the sky to "skyBlue" when the mouse is pressed
fill = 'skyBlue'
sky = 'skyBlue'
Rect( 0, 0, 400, 400, fill='skyBlue'
sky.fill = 'skyBlue'
Explore all questions with a free account