DOM OOP

DOM OOP

1st Grade

8 Qs

quiz-placeholder

Similar activities

Html Parte 1

Html Parte 1

1st - 3rd Grade

12 Qs

SQL Quiz 2

SQL Quiz 2

KG - 1st Grade

10 Qs

Databases & Presentation Software

Databases & Presentation Software

KG - University

12 Qs

Bases de Datos

Bases de Datos

1st - 12th Grade

9 Qs

Google Docs

Google Docs

1st - 5th Grade

7 Qs

Training Power BI 1

Training Power BI 1

1st Grade

12 Qs

Database Fundamentals

Database Fundamentals

KG - University

10 Qs

DOM OOP

DOM OOP

Assessment

Quiz

Computers

1st Grade

Hard

Created by

Yacine Hamdada

Used 7+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The DOM is the set of functionality that browsers provide to enable developers to access and manipulate webpages. What does DOM stand for?

Direct Object Manipulation

Document Object Model

Document Object Manipulation

Document Oriented Model

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method does not exist to retrieve an HTML element?

document.getElementById()

document.getElementsByTagName()

document.getQuerySelector()

document.getElementsByClassName()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for a keyup event ?

eventTarget.keyup = eventHandlerFunction

eventTarget = eventHandlerFunction.onkeyup

eventTarget.onkeyup = eventHandlerFunction

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How will you retrieve an element with the id "first"?

document.getElementById("first")

document.querySelector("#first")

Both A and B

5.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Media Image

Write how to retrieve the element with the id main using querySelector

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

When you're writing JS on a webpage, what is the name of the global variable that represents the DOM?

window

dom

global

document

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these lines of code would replace the content of a webpage with "Helloooo"?

document.innerHTML = ('Helloooo')

document.body.innerHTML = ('Helloooo')

document.body.HTML = ('Helloooo')

8.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The methods getElementsByClassName() and getElementsByTagName() both return a list of the matched elements, even if the match is for a single element.

True or false?

True

False