
JavaScript DOM Manipulation Quiz
Authored by Sáng Nguyễn
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method adds specified class(es) to the classList of an element?
remove(classname)
add(classname)
toggle(classname)
contains(classname)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method removes a specified class from an element's classList?
add(classname)
remove(classname)
toggle(classname)
replace(oldclass, newclass)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the toggle(classname) method do?
Both adds and removes a class
Removes a class from the list
Replaces a class in the list
Adds a class to the list
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the contains(classname) method return?
True if the class is present
False if the class is present
The class name
An error if the class is not found
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to create a new DOM element?
document.removeChild()
document.insertBefore()
document.appendChild()
document.createElement()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does parent.appendChild(node) do?
Removes a child node
Adds a node at the end of the child list
Inserts a node before another
Replaces a child node
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method removes a node from the DOM?
parent.replaceChild(new, old)
parent.insertBefore(new, old)
parent.removeChild(node)
node.remove()
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
20 questions
Bài 13 đến 15
Quiz
•
12th Grade - University
13 questions
IT-sikkerhed
Quiz
•
11th - 12th Grade
14 questions
Cuestionario sobre Lenguajes de Programación
Quiz
•
7th Grade - University
20 questions
Basic of Computer and Network
Quiz
•
8th Grade - University
20 questions
Quiz Microsoft Word
Quiz
•
8th Grade - University
17 questions
CSP Unit 2 - the Internet Review Part 1
Quiz
•
9th - 12th Grade
16 questions
G8- CA2-Revision
Quiz
•
8th Grade - University
13 questions
Arrays in Swift
Quiz
•
10th - 12th 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