Search Header Logo

JavaScript - DOM and DOM manipulation

Authored by Shriram Sakthivel

Other

University

Used 3+ times

JavaScript - DOM and DOM manipulation
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?

para1="New Text"

para1.innerText="New Text";

para1.firstChild.nodeValue= "New Text";

para1.nodeValue="New Text";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

DOM represents a webpage in what way?

Dynamic structure

Recursive structure

Tree-like structure

Hash table structure

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which among the following lets to register a function to be invoked repeatedly after a certain time?

setTimeout

setTotalTime

setInerval

none of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is/are TRUE about DOM?

W3C standard - (World Wide Web Consortium)

Each page can have multiple Document objects

form elements can be accessed using the form object

Both A and C

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For changing the styles of elements, which of the following options can be used?

style.setProperty

setAttribute

getAttribute

none of these

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?