Search Header Logo

CMU Unit 2

Authored by Erin Baker

Computers

11th Grade

Used 44+ times

CMU Unit 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the only shape property that cannot be changed once it has been set?

opacity

align

roundness

radius

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code do?

def g (color):

  • Rect (200, 200, 100, 300., fill = color)

g( )

a rectangle with a fill of NONE

a blue rectangle

a rectangle with a random color

It will give an error message

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen in the following code?

f()

def f():

Circle(200, 200, 50, fill='purple')

You will get an error

A purple circle

An empty circle

A purple oval

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In onMousePress, we can get a point to the right of the mouse press by

adding a positive number to the mouseY

adding a negative number to the mouseX

adding a positive number to the mouseX

adding a negative number to the mouseY

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the mouse is pressed?

s =Star(200, 200, 50, 6, fill="yellow)

def onMousePress(mouseX, mouseY):

s.points = 8

the color of the star will change

The radius will change to 8

It will draw a 6 sided star

The points will change from 6 to 8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen when the mouse is released?

def onMouseRelease(x,y):

Oval(x, y, 150, 150, fill='blue')

Circle(x, y, 10, , fill='green')

A green oval on top of a blue circle

A green circle on top of a blue oval

A blue oval on top of a green circle

A blue oval next to a green circle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This question uses the following functions.

def drawStar(x, y):

Star(x, y, 50, 5, fill='mediumSlateBlue')

def drawCircles(x):

Circle(x - 30, 200, 50, fill='limeGreen')

Circle(x + 30, 200, 50, fill='limeGreen')

In what order do you need to call the functions to create this picture?

drawStar(275, 150)

drawCircles(125) drawCircles(275) drawStar(125, 250)

drawCircles(125) drawCircles(275) drawStar(275, 150) drawStar(125, 250)

drawStar() drawCircles()

drawStar(275, 150) drawCircles(125) drawStar(125, 250)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?