No student devices needed. Know more
14 questions
What command moves Tracy ahead 100 pixels?
forward(100)
move(100)
trace(100)
circle(100)
What command draws a circle with a diameter of 100?
arc(100, 180, 5)
draw_circle(100)
circle(50)
circle(100)
What does the command right(45) do?
Draw a line to the right that is 45 pixels long
Move Tracy 45 pixels to the right
Rotate Tracy 45 pixels clockwise
Rotate Tracy 45 degrees clockwise
What does this code do?
pendown()
forward(100)
penup()
forward(100)
pendown()
forward(100)
penup()
forward(100)
pendown()
Draw a dashed line
Draw a continuous line
Draw a bold faced line
Draw a curvy line
What does this code do?
pendown()
forward(50)
left(90)
forward(50)
left(90)
forward(50)
left(90)
forward(50)
Draw four small squares
Draw a circle
Draw a trinalge
Draw a square
Loops are:
The only way to draw geometric shapes
A way to repeat code without writing it over and over
Coils of strings
A convenient way to store values such as strings and numbers
Which of these lines of code will be repeated 4 times?
3 and 4
All 6
3, 4, and 5
3, 4, 5, and 6
Which is the correct format a comment in Python?
# This is a comment
@ This is a comment
/* This is a comment */
// This is a comment
What are comments in a programming language?
Lines that are executed first, used for describing code
Formal definitions of input parameters
Lines that import arithmetic modules
Lines that are not executed, used for describing code
Which is the best name for a function that will draw a square?
bob_func
foo
my_square_fn
draw_square
Which is NOT a reason to use functions?
Avoid writing the same code over and over
Make your code easier for the computer to execute
Make your code easier to read
Make your code easier to modify
If you want to write code to define a function that draws a square that is x pixels per side, what is the correct first line?
def draw_square()
def draw_square():
def draw_square(x)
def draw_square(x):
What does this function do when called?
Draws 5 circles only
Draws 25 circles, then 5 squares
Draws 5 circles connected by lines
Nothing
Which is NOT and example of using Top Down design?
Breaking a large block of code code into functions
Sketching out a high-level algorithm before defining the smaller ones
Using descriptive names for variables
Separating a large problem into smaller ones
Explore all questions with a free account