
JavaScript Animation Quiz
Authored by Asfia Asif
Computers
7th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the myMove() function do in the given code?
Changes the background color of the container
Moves the red box diagonally across the container
Resizes the red box continuously
Rotates the container
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of clearInterval(id) at the start of the myMove() function?
It resets the box position to the starting point.
It stops any previously running animations to prevent overlap.
It deletes the animation element from the DOM.
It slows down the animation speed.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when the pos variable reaches 350 in the frame() function?
The animation continues but slows down.
The animation resets back to the start.
The animation stops moving the box.
The box changes color.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to repeatedly execute the frame() function?
setTimeout()
setInterval()
requestAnimationFrame()
runInterval()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How often does the frame() function execute?
Every 5 milliseconds
Every 10 milliseconds
Every 50 milliseconds
Every 100 milliseconds
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following line of code do? elem.style.left = pos + 'px';
Moves the element vertically down by pos pixels.
Moves the element horizontally to the right by pos pixels.
Increases the size of the element by pos pixels.
Rotates the element to the right by pos degrees.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS property allows the red box to move inside the container?
float: left;
position: absolute;
display: block;
align-items: center;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Tables in HTML
Quiz
•
7th - 8th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
15 questions
MORE ON CSS3
Quiz
•
7th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
12 questions
Bildschirmpräsentation - Objekte und Regeln
Quiz
•
6th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade