CMU CS Academy Unit 2 Part 3

CMU CS Academy Unit 2 Part 3

9th Grade

10 Qs

quiz-placeholder

Similar activities

8th Grade End of the Quarter(SketchUp)

8th Grade End of the Quarter(SketchUp)

8th - 12th Grade

15 Qs

p5 3d mode

p5 3d mode

9th - 12th Grade

10 Qs

input and output devices

input and output devices

5th - 9th Grade

15 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

CodeHS Canvas and Graphics

CodeHS Canvas and Graphics

9th - 12th Grade

15 Qs

JavaScript Animation

JavaScript Animation

9th - 12th Grade

11 Qs

Computer Programming-Python CodeHS

Computer Programming-Python CodeHS

9th Grade

10 Qs

Quiz 1 2.1 through 2.6

Quiz 1 2.1 through 2.6

9th - 12th Grade

11 Qs

CMU CS Academy Unit 2 Part 3

CMU CS Academy Unit 2 Part 3

Assessment

Interactive Video

Computers

9th Grade

Medium

Created by

Maria Cruz Farooqi

Used 7+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the primary purpose of the 'on mouse press' function?

To release the mouse click

To change the color of the canvas

To capture the location of a mouse click

To draw a circle on the canvas

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you define the 'on mouse press' function?

Using the 'def' keyword

With a mouse click

By drawing a circle

Through the canvas settings

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What parameters are commonly used in the 'on mouse press' function?

Height and Width

X and Y coordinates

Canvas size

Radius and Color

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax is used to define a function in Python?

def

function

define

func

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the 'on mouse press' function is executed?

The canvas is cleared

A circle is moved

A circle is drawn at the mouse click location

A circle's color changes

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between 'on mouse press' and 'on mouse release' events?

'On mouse press' captures mouse location, 'on mouse release' changes circle color

They perform the same action

'On mouse release' captures mouse location, 'on mouse press' changes circle color

There is no difference

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What color does the circle change to upon mouse release?

Green

Blue

Yellow

Red

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?