Kuizi 13 - Web

Kuizi 13 - Web

10th Grade

15 Qs

quiz-placeholder

Similar activities

EXAMEN DAND-JS 2P

EXAMEN DAND-JS 2P

University

20 Qs

6th Grade Media Quiz

6th Grade Media Quiz

KG - University

15 Qs

JS Practice: ITS Certification

JS Practice: ITS Certification

12th Grade

10 Qs

HTML5 Basics

HTML5 Basics

6th - 12th Grade

20 Qs

Recap on JavaScript and HTML

Recap on JavaScript and HTML

University

18 Qs

Gmetrix JavaScript Session 4 Test

Gmetrix JavaScript Session 4 Test

9th - 12th Grade

12 Qs

Javascript Quiz 1

Javascript Quiz 1

11th Grade

15 Qs

Web Technologies(A6602)

Web Technologies(A6602)

University

20 Qs

Kuizi 13 - Web

Kuizi 13 - Web

Assessment

Quiz

Computers

10th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?