Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CMU CS Academy Unit 1 Checkpoint

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

True or False? The opacity argument can be used with any shape.

a)

True

b)

False

2.

Named colors need to be written inside of quotation marks (' ' or " ").

a)

True

b)

False

3.

This image was drawn using 3 shapes (or fewer).

a)

True

b)

False

4.

If a program's code has a syntax error, the error message will be displayed in the editor.

a)

True

b)

False

5.

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)

a)

Change the points to 10 and remove the roundness.

b)

Change the points to 10 and add commas between the values.

c)

Add commas between the values and change the opacity to 50.

d)

Add commas between the values and remove the roundness.

6.

Which of the following draws a line from the top of the triangle to each of the top two corners of the canvas?

a)

b)

c)

d)

7.

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')

a)

b)

c)

d)

8.

If a fill is not provided for each shape that is created, the program will encounter an error.

a)

True

b)

False

9.

A line of code that starts with # is a comment and is ignored by Python.

a)

True

b)

False

10.

It is possible to set the border of a Line shape to 'red'.

a)

True

b)

False

11.

The inspector can be used to learn a shape's properties.

a)

True

b)

False

12.

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')

a)

Change the opacity to 0 and the border to 'sandyBrown'.

b)

Change the opacity to 0 and the borderWidth to 10.

c)

Change the fill to None and the border to 'sandyBrown'.

d)

Change the fill to None and the borderWidth to 10.

13.

Which of the following draws a line that connects the top-most point with the right-most point of the oval shown below?

a)

Line(150, 200, 150, 300)

b)

Line(100, 200, 275, 200)

c)

Line(150, 100, 275, 200)

d)

Line(100, 100, 250, 300)

14.

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')

a)

b)

c)

d)