What does the number 100 represent in this command? ellipse (100, 20, 50, 90)
7.QZ - P5 JS Colors & Shapes Review

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

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
x-position
Answer explanation
In the command ellipse(100, 20, 50, 90), the number 100 represents the x-position of the ellipse's center. The first parameter always indicates the horizontal position, making it the correct choice.
2.
FLASHCARD QUESTION
Front
Which command colors the background of your canvas?
Back
background( ... )
Answer explanation
The command background( ... ) is used to set the color of the canvas's background. Other commands like stroke( ... ) and fill( ... ) affect the outline and fill color of shapes, not the canvas background.
3.
FLASHCARD QUESTION
Front
What color intensity does 100 represent? fill(100,150,75)
Back
Red
Answer explanation
In the fill(100,150,75) function, the first parameter represents the red color intensity. Therefore, 100 corresponds to the intensity of red, making 'Red' the correct answer.
4.
FLASHCARD QUESTION
Front
What does the number 100 represent in this command? ellipse (20, 50, 90, 100)
Back
height
Answer explanation
In the command ellipse(20, 50, 90, 100), the number 100 represents the height of the ellipse. The parameters are x-position, y-position, width, and height, respectively, making 100 the height.
5.
FLASHCARD QUESTION
Front
Which command sets the color for the outline of a shape?
Back
stroke( ... )
Answer explanation
The command 'stroke( ... )' is used to set the color of the outline of a shape in graphics programming. In contrast, 'fill( ... )' sets the interior color, while 'background( ... )' and 'color( ... )' do not affect outlines.
6.
FLASHCARD QUESTION
Front
Which one of the following symbols is used for JavaScript comments? \ ^ ? //
Back
//
Answer explanation
In JavaScript, single-line comments are indicated by the symbol '//'. This allows developers to add notes or disable code without affecting the execution of the program.
7.
FLASHCARD QUESTION
Front
What does the number 100 represent in this command? ellipse (20, 50, 100, 90)
Back
width
Answer explanation
In the command ellipse(20, 50, 100, 90), the number 100 represents the width of the ellipse. The parameters are defined as x-position, y-position, width, and height, respectively.
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Keplers Laws

Flashcard
•
9th Grade
14 questions
Orbits and Kepler's Laws

Flashcard
•
9th Grade
15 questions
Dec 5 2024 Percentages, Decimals, and Fractions

Flashcard
•
9th Grade
15 questions
Final Exam Practice Test

Flashcard
•
9th Grade
16 questions
JavaScript

Flashcard
•
7th - 8th Grade
15 questions
Kepler's 1st Law of Planetary Motion

Flashcard
•
9th Grade
15 questions
Keplers Laws

Flashcard
•
9th Grade
15 questions
Javascript Basics (Khan Academy)

Flashcard
•
6th - 8th 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