• 1. 
    What would you need to change to keep the ellipse red, but make the rectangle white?

  • Nothing. The rectangle will be white because shapes are white by default.
  • Add fill(0, 0, 0) above the rect() function.
  • Add fill(255, 255, 255) above the rect() function.
  • Swap the order of the rect() function and the ellipse() function.
  • 2. 
    What's wrong with this code?

  • There is a curly bracket missing after setup()
  • There is a curly bracket missing after draw()
  • There are missing semicolons after setup() and draw()
  • stroke() cannot have an argument of ‘0’
  • 3. 
    Why won’t an ellipse appear when this program is run?

  • The canvas size is too small.
  • The ellipse() function needs to be called before background()
  • An ellipse with a size of 50 pixels is too small to be seen on the canvas.
  • The rect() function draws a rectangle on top of the circle, covering it up.
  • 4. 
    What number would you change to move the y position of this rectangle?

  • 20 (the first argument)
  • 30 (the second argument)
  • 100 (the third argument)
  • 150 (the fourth argument)
  • 5. 
    What function do we use to change the color of the *background*?

  • stroke()
  • fill()
  • background()
  • rect()
  • 6. 
    What function do we use to change the outline color of a shape?

  • stroke()
  • strokeWeight()
  • fill()
  • text()
  • 7. 
    Which of the following would create a blue fill?

  • fill(255, 255, 255);
  • fill(255, 0, 0);
  • fill(0, 255, 0);
  • fill(0, 0, 255);
  • 8. 
    What x and y coordinates would you use to center a circle on a canvas that is 400 by 400 pixels?

  • (100, 100)
  • (200, 200)
  • (300, 300)
  • (400, 400)
  • 9. 
    What function do we use to change the color of a shape or text?

  • strokeWeight()
  • ellipse()
  • text()
  • fill()
Report Question
warning
access_time
  Time