Search Header Logo

Lecture 6

Authored by Nam Nguyen

Computers

Professional Development

Used 1+ times

Lecture 6
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does DOM stand for?

A. Document Object Method

B. Document Object Model

C. Data Object Model

D. Data Object Method

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a method to access an HTML element in the DOM?

A. getElementById

B. getElementsByClassName

C. getElementsByTagName

D. getElementByQuery

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the querySelector method do?

A. Selects all elements that match a specified CSS selector

B. Selects the first element that matches a specified CSS selector

C. Selects an element by its ID

D. Selects elements by their class name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following properties would you use to change the text inside an HTML element?

A. innerHTML

B. outerHTML

C. innerText

D. outerText

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you create a new HTML element using JavaScript?

A. document.createElement()

B. document.newElement()

C. document.makeElement()

D. document.buildElement()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The DOM represents the structure of an HTML document as a tree of objects.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The appendChild method adds a node as the last child of a parent node ?

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?