
Kuizi 13 - Web

Quiz
•
Computers
•
10th Grade
•
Easy
Shkodran Hasani
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to select an element by its ID?
document.getElementsByClassName
document.querySelector
document.selectById
document.getElementById
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method adds a new element to the end of a parent element?
pushElement
appendChild
addChild
insertElement
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove an element from the DOM?
Use element.delete() to remove an element.
Call removeElement(element) method.
Set element.style.display to 'none' to hide it.
Use element.remove() or parentNode.removeChild(element).
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the addEventListener method?
To remove an event handler from an element.
To attach an event handler to an element.
To create a new HTML element.
To change the style of an element.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property is used to access the first child of a node?
firstChild
parentNode
lastChild
nextSibling
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method would you use to change the text content of an element?
Use the 'setAttribute' method on the element.
Use the 'innerHTML' property of the element.
Change the 'style' property of the element.
Use the 'textContent' property of the element.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you prevent the default action of an event?
Use event.stopPropagation() in the event handler.
Set the event's return value to false.
Use event.preventDefault() in the event handler.
Call the function directly without any parameters.
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
JS - Knowledge Check

Quiz
•
University
20 questions
WEB PASII-XI2023

Quiz
•
11th Grade
20 questions
Microsoft Word Ribbon Test

Quiz
•
9th - 12th Grade
15 questions
JAVASCRIPT.QUIZ

Quiz
•
University
15 questions
HTML

Quiz
•
9th - 12th Grade
10 questions
JS Practice: ITS Certification

Quiz
•
12th Grade
20 questions
HTML5 Basics

Quiz
•
6th - 12th Grade
20 questions
EXAMEN DAND-JS 2P

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade