onMouseMove and onMouseDrag can have different code in their bodies.
CMU Merge

Quiz
•
Other
•
9th Grade
•
Hard
Kelsie Mason
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An else statement is only run when its associated if statement's condition is False.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code will draw a Star when the mouse is dragged anywhere on the left side of the canvas.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following code will cause an error if we press the mouse.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many shapes are drawn when we call onMouseMove(100, 150)?
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume that drawFlower(x, y) draws a flower. Which of the following answers correctly defines onMouseMove to draw flowers in the white portions of the canvas, and nothing in the blue portion of the canvas?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What color is the app's background after running the code below?
red
green
blue
purple
Create a free account and access millions of resources
Similar Resources on Quizizz
25 questions
IS - Earth Sci (1st Sem.) | Week 1

Quiz
•
9th - 12th Grade
25 questions
Identify plants grown in NC using plant identification practices

Quiz
•
9th - 12th Grade
30 questions
Classification of Matter

Quiz
•
8th - 10th Grade
25 questions
OnShape: Introduction to Sketching

Quiz
•
9th - 12th Grade
31 questions
Phases of Matter

Quiz
•
8th - 9th Grade
25 questions
General Information Quiz Bee (BCR)

Quiz
•
9th - 12th Grade
23 questions
Formation of the Solar System

Quiz
•
9th - 12th Grade
25 questions
Animation Quiz

Quiz
•
9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University