The property being changed in this code is...
Unit 2: Properties

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

32 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
fill
Answer explanation
Look at line 12. Notice that the fill property of the variable sky is being changed.
2.
FLASHCARD QUESTION
Front
Which variable has its centerX property set to 300?
Back
ball
3.
FLASHCARD QUESTION
Front
If you wanted to change the text in the variable called message:
Back
message.value = 'Bye'.
Answer explanation
The name of the variable is message. The name of the property is value. To change a property, you must do this message.value = 'Hello'.
4.
FLASHCARD QUESTION
Front
If you want to move one end of the variable ground up:
Back
ground.y1 = 200
Answer explanation
To move one end of a line up, you have to change either the y1 property or the y2 property- not the x1 or x2. Changing the y1 from 300 to 200 will move it up. Changing it to 350 will move it down.
5.
FLASHCARD QUESTION
Front
If you want to move one end of the variable ground up:
Back
ground.y1-=1
Answer explanation
To move one end of a line up, you have to change either the y1 property or the y2 property. If you want to change the value of ground.y1 you must use +=. += means ground.y1=ground.y1+1 which means that the new value of ground.y1 equals the old value plus 1.
6.
FLASHCARD QUESTION
Front
If you want to change the color of the background:
Back
background.fill = 'red'.
7.
FLASHCARD QUESTION
Front
If you want to make the box more transparent, you must change the opacity property like this:
Back
box.opacity-=50
Answer explanation
If you decrease the opacity, you increase the transparency. If you just use minus, then you don't change the opacity. You have to use -= to change the value of the opacity property for the box.
Create a free account and access millions of resources
Similar Resources on Quizizz
28 questions
HS Baseball IQ Test

Flashcard
•
9th - 12th Grade
21 questions
Paquette's golf assignment

Flashcard
•
9th - 12th Grade
31 questions
Quadrilateral & Centers of Triangles VOCAB

Flashcard
•
9th - 12th Grade
22 questions
Basketball Final Exam

Flashcard
•
11th Grade
20 questions
Circular Motion

Flashcard
•
11th Grade
24 questions
Softball Rules Test 4

Flashcard
•
9th Grade
17 questions
"Sumn Lite" Honors

Flashcard
•
9th - 12th Grade
20 questions
JavaScript Flashcard 2

Flashcard
•
9th - 12th 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 Computers
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