WorksheetsCMU CS Academy Unit 1 Checkpoint
Total questions: 14
Worksheet time: 7mins
True or False? The opacity argument can be used with any shape.
True
False
Named colors need to be written inside of quotation marks (' ' or " ").
True
False
This image was drawn using 3 shapes (or fewer).
True
False
If a program's code has a syntax error, the error message will be displayed in the editor.
True
False
Which of the edits need to happen to the Star in the code below so that it draws the picture?
Circle(200, 200, 150, fill='dodgerBlue')
Star(200 200 120 5 fill='crimson' roundness=80)
Change the points to 10 and remove the roundness.
Change the points to 10 and add commas between the values.
Add commas between the values and change the opacity to 50.
Add commas between the values and remove the roundness.
Which of the following draws a line from the top of the triangle to each of the top two corners of the canvas?
Which of these pictures shows the result of the following lines of code?
Circle(300, 200, 50, fill='limeGreen')
Rect(100, 150, 200, 100, fill='deepPink', opacity=50)
Circle(100, 200, 50, fill='limeGreen')
If a fill is not provided for each shape that is created, the program will encounter an error.
True
False
A line of code that starts with # is a comment and is ignored by Python.
True
False
It is possible to set the border of a Line shape to 'red'.
True
False
The inspector can be used to learn a shape's properties.
True
False
Which of the edits need to happen to the Polygon in the code below so that it draws the picture?
Rect(0, 0, 400, 400, fill='aliceBlue')
Polygon(200, 100, 100, 300, 300, 300, fill='sandyBrown')
Change the opacity to 0 and the border to 'sandyBrown'.
Change the opacity to 0 and the borderWidth to 10.
Change the fill to None and the border to 'sandyBrown'.
Change the fill to None and the borderWidth to 10.
Which of the following draws a line that connects the top-most point with the right-most point of the oval shown below?
Line(150, 200, 150, 300)
Line(100, 200, 275, 200)
Line(150, 100, 275, 200)
Line(100, 100, 250, 300)
Which of these pictures shows the result of the following lines of code?
Star(175, 200, 100, 5, border='dodgerBlue', borderWidth=10)
Circle(250, 220, 75, fill='grey')
