
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
8 questions
Topic 74 Inscribed Angles and Polygons

Flashcard
•
10th Grade
5 questions
easy

Flashcard
•
KG
5 questions
Welding Process Overview Advanced

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

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

Flashcard
•
9th - 12th Grade
10 questions
Central Angles & Circle Vocab

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

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

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade