
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
Percent Abundance
Flashcard
•
10th - 12th Grade
11 questions
Evidence of Evolution Formative
Flashcard
•
10th - 12th Grade
2 questions
Daily Check in
Flashcard
•
KG - 12th Grade
7 questions
Parent Functions and Transfromations
Flashcard
•
9th - 12th Grade
2 questions
W4.4
Flashcard
•
KG - University
10 questions
Crash Course Computer Science #3 - Boolean Logic & Logic Gates
Flashcard
•
9th - 12th Grade
9 questions
AP Bio Cellular Respiration
Flashcard
•
10th - 12th Grade
8 questions
Unit 3.7 Firm's costs, Revenue & Objective
Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade