
JavaScript - DOM and DOM manipulation
Authored by Shriram Sakthivel
Other
University
Used 3+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?