What is the name of the variable?
JS Variable Review

Quiz
•
Computers
•
10th Grade
•
Medium
Jocelyn Hall
Used 14+ times
FREE Resource
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ball
draw
ellipse
function
Answer explanation
The variable name is 'ball', which is one of the answer choices provided. The other options, 'draw', 'ellipse', and 'function', do not represent the variable in question.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the variable in this code?
To store the X-POSITION of the ellipse
To store the Y-POSITION of the ellipse
To store the WIDTH of the ellipse
To store the HEIGHT of the ellipse
Answer explanation
The variable is used to store the X-POSITION of the ellipse, which determines its horizontal placement on the canvas. This is crucial for rendering the ellipse at the correct location.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times do you need DECLARE a variable?
Once
Depends
Answer explanation
You only need to DECLARE a variable once in a given scope. After declaration, you can use the variable multiple times without needing to declare it again.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is animating in this code?
the ellipse is moving RIGHT
the ellipse is moving DOWN
the ellipse is getting WIDER
the ellipse is getting TALLER
Answer explanation
The code animates the ellipse by changing its vertical position, causing it to move DOWN. The other options refer to changes in width or height, which are not indicated in the code.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which line has an example a VARIABLE DECLARATION?
Line 1
Line 6
Line 8
Answer explanation
Line 1 contains a variable declaration, which typically includes a type and a variable name. The other lines do not represent variable declarations, making Line 1 the correct choice.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the variable in this code?
To store the X-POSITION of the ellipse
To store the Y-POSITION of the ellipse
To store the WIDTH of the ellipse
To store the HEIGHT of the ellipse
Answer explanation
The variable is used to store the Y-POSITION of the ellipse, which determines its vertical placement on the canvas. This is crucial for rendering the ellipse at the correct location.
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What color intensity does 100 represent?
fill(120, 50, 100)
Red
Green
Blue
Answer explanation
In the fill(120, 50, 100) function, the parameters represent the RGB color model. The third parameter, 100, corresponds to the intensity of blue. Therefore, 100 represents the color intensity of Blue.
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
AP Computer Science A Unit 1

Quiz
•
9th - 12th Grade
20 questions
Game Lab Basics

Quiz
•
9th - 12th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
21 questions
CodeHS JavaScript

Quiz
•
8th - 12th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
21 questions
AP CSP Unit 5 Ch 1 Quiz

Quiz
•
9th - 12th Grade
21 questions
Programming Basics

Quiz
•
9th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 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
20 questions
Types of Credit

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

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