placeholder image to represent content

CMU Unit 1 and Unit 2

Quiz by Stephen Franz

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
40 questions
Show answers
  • Q1
    What do the first two numbers mean in: Oval(150, 150, 100, 200, fill='gold')
    The center of the oval
    The top left of the oval
    30s
  • Q2
    Which of the following has a syntax error?
    Line(50, 50, 100, 100, border=None)
    Rect(50, 50, 100, 300 fill='white')
    Circle(300, 300, 75, borderWidth=5)
    Oval(200, 150, 200, 200, dashes=True)
    30s
  • Q3
    What does fill=None do to the shape?
    Changes fill to match background
    Sets opacity to 0
    Makes the entire shape invisible
    Makes the fill empty
    30s
  • Q4
    Which of the following tools can help you find out what color a shape is for an exercise?
    Inspector
    Console
    Code Editor
    Autograder
    30s
  • Q5
    Which code draws a star that is closest to the shape of a circle?
    Star(240, 130, 35, 7, roundness=60)
    Star(320, 130, 35, 7, roundness=80)
    Star( 80, 130, 35, 7, roundness=20)
    Star(160, 130, 35, 7, roundness=40)
    30s
  • Q6
    How many coordinate values are needed to draw a non-regular polygon with 3 sides?
    6
    8
    2
    4
    30s
  • Q7
    Which of the following fonts is not supported?
    Times New Roman
    Courier
    Monospace
    Arial
    30s
  • Q8
    How do you set the width of a line?
    lineWidth
    Linewidth
    borderWidth
    width
    30s
  • Q9
    What is the value we use to indicate an empty shape property?
    None
    'Empty'
    none
    'None'
    30s
  • Q10
    Finish the code so it draws this image. Rect(100, 150, 200, 100, ...
    Question Image
    fill=gradient('black', 'white'), border='black',dashes=True)
    fill=gradient('black', 'white'), border='black')
    fill=gradient(‘white, ‘black’), border=’black’)
    fill=gradient(‘white’, ‘black’), border=’black’,dashes=True)
    30s
  • Q11
    Can you use colors in shapes that aren't in the color table?
    No, only colors in the color table can be used.
    No, the only way to use other colors is to use gradients.
    Yes, you can look up RGB values for any color and use it.
    Yes, you can write any color name and it will work.
    30s
  • Q12
    What is radius?
    Halfway across a circle
    The full width of the circle.
    30s
  • Q13
    What do the first two numbers represent when we make a line? Line(50, 100, 75, 200)
    The start of the line.
    The end of the line.
    30s
  • Q14
    What does the third number mean in : Circle(100, 200, 50, fill='green')
    The center of the circle.
    The radius of the circle
    30s
  • Q15
    What do the first two numbers mean in the following code? Circle(100, 200, 50, fill='green')
    The radius of the circle
    The center of the circle.
    30s

Teachers give this quiz to your class