7.QZ - P5 JS Colors & Shapes Review

Flashcard
•
Computers
•
9th Grade
•
Hard
Wayground 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
Javascript Basics (Khan Academy)

Flashcard
•
6th - 8th Grade
15 questions
Kepler's Laws & Barycenter

Flashcard
•
9th Grade
15 questions
Mastering Imperatives

Flashcard
•
9th Grade
16 questions
Vector graphics

Flashcard
•
10th Grade
14 questions
Economics

Flashcard
•
9th Grade
15 questions
Codesters

Flashcard
•
7th - 8th Grade
15 questions
Keplers Laws

Flashcard
•
9th Grade
15 questions
Final Exam Practice Test

Flashcard
•
9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade