CMU CS Academy Unit 2 Part 3

CMU CS Academy Unit 2 Part 3

9th Grade

10 Qs

quiz-placeholder

Similar activities

CMU CS Academy Unit 3.2.3 If Else Statements

CMU CS Academy Unit 3.2.3 If Else Statements

9th Grade

13 Qs

p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

CMU CS3

CMU CS3

9th - 11th Grade

10 Qs

CMU CS Academy Complex Conditionals

CMU CS Academy Complex Conditionals

9th Grade

13 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

CMU CS Academy Unit 3.2 If Statements

CMU CS Academy Unit 3.2 If Statements

9th Grade

8 Qs

Event Handling

Event Handling

5th - 12th Grade

10 Qs

Selection tools

Selection tools

6th - 10th Grade

10 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?