Search Header Logo

CMU CS Academy Unit 2 Checkpoint

Authored by Mr. Stevens

Computers

6th - 8th Grade

Used 42+ times

CMU CS Academy Unit 2 Checkpoint
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Since we did not set its fill using the fill argument, we cannot modify its fill later.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can define a function without any parameters.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Using the variable name orangeStar1 for a purple rectangle will cause an error.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We need to call onMousePress in our code before it will react to mouse presses.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What happens when the mouse is pressed once while running the following code?

The opacity of the oval decreases.

The oval moves to the left.

There is an error on the last line of code.

There is an error because the onMousePress parameters have the wrong names.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is drawn when the mouse is released while running the following code?

A blue rectangle covering part of a green rectangle.

Two non-touching rectangles.

A green rectangle.

Two overlapping rectangles of different colors.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Select the answer that correctly calls these functions to draw the image. Hint: You can use the drawing order of the shapes to help you narrow down the answer.

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?