
JavaScript drawing skills

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

3 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the picture. If the code runs every 20 milliseconds, what is the effect on the arc that is drawn on the canvas?
Back
The arc moves vertically between y = 0 and y = 250.
2.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the image. You expect the arc to move left to right on the canvas, but you find that it is moving up and down. How do you fix the code to create the movement effect you want? Options: replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, 400, 20, Math.PI *2, false);, replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, x, 20, Math.PI *2, false);, Set 'x += dx;' to 'x -= dx;' instead., replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(400, 50, x, Math.PI *2, false);
Back
replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, 400, 20, Math.PI *2, false);
3.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the image. You expect the arc to move, but it does not appear on the canvas. How do you fix the code?
Back
Change 'setInterval(draw, 20);' to 'setInterval(drawIt, 20);'
Similar Resources on Wayground
8 questions
AI Questions

Flashcard
•
KG - University
10 questions
Central Angles & Circle Vocab

Flashcard
•
9th - 12th Grade
10 questions
Chord Theorem

Flashcard
•
9th - 12th Grade
9 questions
Parts of a circle

Flashcard
•
9th - 12th Grade
11 questions
Arc Length and Sector Area

Flashcard
•
9th - 12th Grade
10 questions
Parts of a Circle

Flashcard
•
9th - 12th Grade
6 questions
Welding Technology Flashcard

Flashcard
•
9th - 12th Grade
11 questions
Circle Area & Sector Area

Flashcard
•
9th - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade