Kuizi 13 - Web

Kuizi 13 - Web

10th Grade

15 Qs

quiz-placeholder

Similar activities

HTML forms

HTML forms

11th Grade - University

10 Qs

MAWD 4.01

MAWD 4.01

9th - 12th Grade

16 Qs

JS Skill Assessment  (Internal Exam)

JS Skill Assessment (Internal Exam)

University

20 Qs

js DOM

js DOM

12th Grade - Professional Development

20 Qs

Advanced JS Part 1

Advanced JS Part 1

12th Grade

10 Qs

JavaScripting

JavaScripting

University

10 Qs

Javascript Basic

Javascript Basic

9th - 12th Grade

20 Qs

Cuestionario de Certificación JS 2024

Cuestionario de Certificación JS 2024

12th Grade

17 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?