CMU CS Academy Unit 2 Part 2

CMU CS Academy Unit 2 Part 2

9th Grade

10 Qs

quiz-placeholder

Similar activities

Autodesk Maya Basics

Autodesk Maya Basics

9th - 12th Grade

15 Qs

CMU CS Academy Unit 5

CMU CS Academy Unit 5

9th Grade

11 Qs

QUIZ #2

QUIZ #2

9th Grade

10 Qs

Gmetrix JavaScript Session 4 Test

Gmetrix JavaScript Session 4 Test

9th - 12th Grade

12 Qs

Python Classes

Python Classes

9th - 12th Grade

11 Qs

Perangkat Keras dan Perangkat Lunak Komputer

Perangkat Keras dan Perangkat Lunak Komputer

9th - 12th Grade

10 Qs

1.1 - Internal components of a computer

1.1 - Internal components of a computer

KG - University

10 Qs

CMU CS3

CMU CS3

9th - 11th Grade

10 Qs

CMU CS Academy Unit 2 Part 2

CMU CS Academy Unit 2 Part 2

Assessment

Interactive Video

Computers

9th Grade

Hard

Created by

Maria Cruz Farooqi

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

To create a circle on the canvas

To capture the location of a mouse click

To change the color of an element

To release the mouse button

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in Python?

Using the 'function' keyword

Using the 'def' keyword

Using the 'func' keyword

Using the 'declare' keyword

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when 'on mouse press' is triggered?

The program exits

A circle's color changes to red

A circle is moved to a new location

A circle is created at the mouse click location

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax is used to define the parameters of 'onmousepress'?

x, y

mousex, mousey

clickx, clicky

positionx, positiony

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

'on mouse press' changes the color of the circle

'on mouse release' is triggered when the mouse button is released

They are the same

'on mouse press' captures mouse location, 'on mouse release' does not

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What color does the circle change to on mouse release?

Red

Yellow

Blue

Green

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What visual feedback is provided when a mouse event is triggered?

A message is displayed

A circle is drawn on the canvas

A sound is played

The cursor changes shape

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?