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
What does the number 100 represent in this command? ellipse (100, 20, 50, 90)
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 Wayground
15 questions
Keplers Laws

Flashcard
•
9th Grade
16 questions
JavaScript

Flashcard
•
7th - 8th Grade
12 questions
Khan Academy JavaScript

Flashcard
•
8th Grade
16 questions
p5.js - shape, color, syntax

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

Flashcard
•
9th Grade
15 questions
Kepler's Laws 1, 2 and 3

Flashcard
•
9th Grade
15 questions
Keplers Laws

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

Flashcard
•
6th - 8th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade