
JavaScript drawing skills
Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground 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
11 questions
Angle of Elevation and Depression
Flashcard
•
9th Grade
14 questions
A2 Quadratic Formula and Discriminant
Flashcard
•
9th - 12th Grade
12 questions
Biologi Tingkatan 5 Bab 3
Flashcard
•
12th Grade
7 questions
Functions Vocabulary
Flashcard
•
9th - 12th Grade
8 questions
Literal Equations
Flashcard
•
9th Grade
10 questions
Solving Multistep Equations Flashcard (RETAKE)
Flashcard
•
9th - 12th Grade
10 questions
Algebra
Flashcard
•
12th Grade
11 questions
H Chem: Chemical Analysis
Flashcard
•
KG
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade