
JavaScript Animation Quiz

Quiz
•
Computers
•
7th Grade
•
Hard
Asfia Asif
Used 3+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Introduction to programming

Quiz
•
5th - 10th Grade
10 questions
Quiz 8 (01.09.2021)

Quiz
•
1st - 12th Grade
12 questions
Testing software

Quiz
•
1st Grade - University
15 questions
Assesment for Lessons 1-5 Code.org

Quiz
•
5th - 8th Grade
15 questions
Parts of a Computer

Quiz
•
6th - 8th Grade
10 questions
Micro-bits

Quiz
•
3rd - 8th Grade
10 questions
Excel Intro

Quiz
•
7th - 12th Grade
10 questions
T3. C1-C2 Quizizz Post-Test

Quiz
•
7th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade