What is the primary function of 'on mouse press'?
CMU CS Academy Unit 2 Part 2

Interactive Video
•
Computers
•
9th Grade
•
Hard
Maria Cruz Farooqi
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
16 questions
Python basics

Quiz
•
9th - 12th Grade
13 questions
Tech Vocab I

Quiz
•
1st Grade - University
15 questions
Google Docs

Quiz
•
9th Grade
11 questions
The keyboard and mouse

Quiz
•
4th Grade - Professio...
10 questions
General Computing

Quiz
•
5th - 12th Grade
15 questions
Using Computer Terminology

Quiz
•
1st Grade - University
12 questions
Scratch Basics

Quiz
•
7th - 9th Grade
16 questions
Python Unit 3 Codehs

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade