wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CMU quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

To draw a rectangle 20 wide and 30 high you could use.....

a)

Rect(10, 20, 30, 40)

b)

rect(10, 20, 30, 40)

c)

rect(10, 20, 40, 50)

d)

Rect(10, 20, 40, 50)

2.

(x,y) coordinates

As x increases, you head right. As y increases, you head

a)

Left

b)

Up

c)

Down

d)

Home

3.

Which rectangle has a right-bottom corner at (100, 150)?

a)

Rect(70, 90, 150, 100)

b)

Rect(70, 90, 80, 10)

c)

Rect(70, 90, 30, 60)

d)

Rect(70, 90, 100, 150)

4.

What is the correct code to draw a green square

a)

Rect(50, 50, 100, 100 fill='green')

b)

Rect(50, 50, 100, 100, fill 'green')

c)

Rect(50, 50, 100, 100, fill='green')

d)

rect(50, 50, 100, 100, fill='green')

5.

Rect(0,0,400,400, fill='lightCyan')

Rect(40,20,160,160, fill='dodgerBlue')

Rect(120,100,160,200, fill='gold')

Rect(200,220,160,160, fill='Blue')


what colour is the square which is on top of all the others?

a)

lightCyan

b)

dodgerBlue

c)

gold

d)

blue

6.

Which code draws a yellow square with a blue border

a)

Rect(50, 50, 100, 100, fill='yellow', border='blue', border=12)

b)

Rect(50, 50, 100, 100, fill='yellow', border='blue', borderWidth=12)

c)

Rect(50, 50, 100, 100, fill='yellow' (border='blue', borderWidth=12))

d)

Rect(50, 50, 100, 100, fill='yellow', border=blue, borderWidth=12)

7.

Which rectangle has a dashed border

a)

Rect(50, 50, 100, 100, fill='cyan', border='navy', dashed='True')

b)

Rect(50, 50, 100, 100, fill='cyan', border='navy', dashed=True)

c)

Rect(50, 50, 100, 100, fill='cyan', border='navy', dashes='True')

d)

Rect(50, 50, 100, 100, fill='cyan', border='navy', dashes=True)

8.

Which code is correct

a)

Rect(50, 50, 100, 100, fill=None, border='blue', borderWidth=6)

b)

Rect(50, 50, 100, 100, fill=none, border='blue', borderWidth=6)

c)

Rect(50, 50, 100, 100, fill='None', border='blue', borderWidth=6)

d)

Rect(50, 50, 100, 100, fill='none', border='blue', borderWidth=6)

9.

How do we code RGB values

a)

Rect(100, 100, 100, 100, fill=rgb 46, 139, 87)

b)

Rect(100, 100, 100, 100, fill='rgb'(46, 139, 87))

c)

Rect(100, 100, 100, 100, fill='rgb 46, 139, 87')

d)

Rect(100, 100, 100, 100, fill=rgb(46, 139, 87))

10.

Which is correct for a gradient

a)

Rect(50, 50, 100, 100, fill='gradient('red', 'blue')')

b)

Rect(50, 50, 100, 100, fill=gradient,'red', 'blue')

c)

Rect(50, 50, 100, 100, fill=gradient('red', 'blue'))

d)

Rect(50, 50, 100, 100, fill=gradient('red' 'blue'))

11.

And for a 3 colour gradient starting left

a)

Rect(50, 50, 100, 100, fill=gradient('red', 'blue', 'green', start='left'))

b)

Rect(50, 50, 100, 100, fill=gradient('red', 'blue', 'green', start=left))

c)

Rect(50, 50, 100, 100, fill=gradient, 'red', 'blue', 'green', start='left')

d)

Rect(50, 50, 100, 100, fill=gradient(red, blue, green, start='left'))

12.

How do we add opacity?

a)

Rect(225, 150, 100, 100, fill='blue', opacity,50)

b)

Rect(225, 150, 100, 100, fill='blue', opacity='50')

c)

Rect(225, 150, 100, 100, (fill='blue', opacity=50))

d)

Rect(225, 150, 100, 100, fill='blue', opacity=50)

13.

Code for a circle with 50 radius

a)

Circle(100, 200, radius=50, fill='green')

b)

Circle(100, 200, 50, fill='green')

c)

Circ(100, 200, 50, fill='green')

d)

Circ(100, 200, radius=50, fill='green')

14.

What are the co-ordinates for this circles' topmost point Circle(100, 200, 50, fill='green')

a)

150,250

b)

150,100

c)

100,200

d)

100,150

15.

Is this line

Line(75, 200, 50, 100, fill='orange')?

a)

Horizontal

b)

Vertical

c)

Diagonal

d)

Invisible

16.

What do we use to set the border of a line

a)

border

b)

lineWidth

c)

fill

d)

Don't be silly, lines can't have a border

17.

How do we set a label to BOLD

a)

Label('This is bold!', 200, 150, size=36, bold='true')

b)

Label('This is bold!', 200, 150, size=36, bold='True')

c)

Label('This is bold!', 200, 150, size=36, bold=true)

d)

Label('This is bold!', 200, 150, size=36, bold=True)

18.

Which code creates a triangle

a)

RegularPolygon(200, 100, 75, 3)

b)

Polygon(200, 100, 75, 3)

c)

Star(200, 100, 75, 3)

d)

RegularPolygon(200, 100, 300, 200, 100, 200)

19.

The code for a 7 point rounded star?

a)

Star(320, 130, 35, 7, round=80)

b)

Star(320, 130, 35, 7, round='80')

c)

Star(320, 130, 35, 7, roundness='80')

d)

Star(320, 130, 35, 7, roundness=80)

20.

Create a polygon triangle

a)

Polygon(100, 100, 100, 30, 3)

b)

Polygon(100, 100, 100, 300, 150, 300)

c)

Polygon(100, 100, 3)

d)

Polygon(100, 100, 100, 300, 150, 300, 180, 350)