NEW
Font size
WorksheetsCMU quiz
Total questions: 20
Worksheet time: 10mins
To draw a rectangle 20 wide and 30 high you could use.....
Rect(10, 20, 30, 40)
rect(10, 20, 30, 40)
rect(10, 20, 40, 50)
Rect(10, 20, 40, 50)
(x,y) coordinates
As x increases, you head right. As y increases, you head
Left
Up
Down
Home
Which rectangle has a right-bottom corner at (100, 150)?
Rect(70, 90, 150, 100)
Rect(70, 90, 80, 10)
Rect(70, 90, 30, 60)
Rect(70, 90, 100, 150)
What is the correct code to draw a green square
Rect(50, 50, 100, 100 fill='green')
Rect(50, 50, 100, 100, fill 'green')
Rect(50, 50, 100, 100, fill='green')
rect(50, 50, 100, 100, fill='green')
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?
lightCyan
dodgerBlue
gold
blue
Which code draws a yellow square with a blue border
Rect(50, 50, 100, 100, fill='yellow', border='blue', border=12)
Rect(50, 50, 100, 100, fill='yellow', border='blue', borderWidth=12)
Rect(50, 50, 100, 100, fill='yellow' (border='blue', borderWidth=12))
Rect(50, 50, 100, 100, fill='yellow', border=blue, borderWidth=12)
Which rectangle has a dashed border
Rect(50, 50, 100, 100, fill='cyan', border='navy', dashed='True')
Rect(50, 50, 100, 100, fill='cyan', border='navy', dashed=True)
Rect(50, 50, 100, 100, fill='cyan', border='navy', dashes='True')
Rect(50, 50, 100, 100, fill='cyan', border='navy', dashes=True)
Which code is correct
Rect(50, 50, 100, 100, fill=None, border='blue', borderWidth=6)
Rect(50, 50, 100, 100, fill=none, border='blue', borderWidth=6)
Rect(50, 50, 100, 100, fill='None', border='blue', borderWidth=6)
Rect(50, 50, 100, 100, fill='none', border='blue', borderWidth=6)
How do we code RGB values
Rect(100, 100, 100, 100, fill=rgb 46, 139, 87)
Rect(100, 100, 100, 100, fill='rgb'(46, 139, 87))
Rect(100, 100, 100, 100, fill='rgb 46, 139, 87')
Rect(100, 100, 100, 100, fill=rgb(46, 139, 87))
Which is correct for a gradient
Rect(50, 50, 100, 100, fill='gradient('red', 'blue')')
Rect(50, 50, 100, 100, fill=gradient,'red', 'blue')
Rect(50, 50, 100, 100, fill=gradient('red', 'blue'))
Rect(50, 50, 100, 100, fill=gradient('red' 'blue'))
And for a 3 colour gradient starting left
Rect(50, 50, 100, 100, fill=gradient('red', 'blue', 'green', start='left'))
Rect(50, 50, 100, 100, fill=gradient('red', 'blue', 'green', start=left))
Rect(50, 50, 100, 100, fill=gradient, 'red', 'blue', 'green', start='left')
Rect(50, 50, 100, 100, fill=gradient(red, blue, green, start='left'))
How do we add opacity?
Rect(225, 150, 100, 100, fill='blue', opacity,50)
Rect(225, 150, 100, 100, fill='blue', opacity='50')
Rect(225, 150, 100, 100, (fill='blue', opacity=50))
Rect(225, 150, 100, 100, fill='blue', opacity=50)
Code for a circle with 50 radius
Circle(100, 200, radius=50, fill='green')
Circle(100, 200, 50, fill='green')
Circ(100, 200, 50, fill='green')
Circ(100, 200, radius=50, fill='green')
What are the co-ordinates for this circles' topmost point Circle(100, 200, 50, fill='green')
150,250
150,100
100,200
100,150
Is this line
Line(75, 200, 50, 100, fill='orange')?
Horizontal
Vertical
Diagonal
Invisible
What do we use to set the border of a line
border
lineWidth
fill
Don't be silly, lines can't have a border
How do we set a label to BOLD
Label('This is bold!', 200, 150, size=36, bold='true')
Label('This is bold!', 200, 150, size=36, bold='True')
Label('This is bold!', 200, 150, size=36, bold=true)
Label('This is bold!', 200, 150, size=36, bold=True)
Which code creates a triangle
RegularPolygon(200, 100, 75, 3)
Polygon(200, 100, 75, 3)
Star(200, 100, 75, 3)
RegularPolygon(200, 100, 300, 200, 100, 200)
The code for a 7 point rounded star?
Star(320, 130, 35, 7, round=80)
Star(320, 130, 35, 7, round='80')
Star(320, 130, 35, 7, roundness='80')
Star(320, 130, 35, 7, roundness=80)
Create a polygon triangle
Polygon(100, 100, 100, 30, 3)
Polygon(100, 100, 100, 300, 150, 300)
Polygon(100, 100, 3)
Polygon(100, 100, 100, 300, 150, 300, 180, 350)
