ExamVeda
Login
Home
71
What is the purpose of the method nodeMap.setNamedItem()?
Discuss
Answer & Solution
Answer: Option B
Solution:
The method nodeMap.setNamedItem() sets the specified attribute node (by name).
72
How is everything treated in HTML DOM?
Discuss
Answer & Solution
Answer: Option A
Solution:
In the HTML DOM (Document Object Model), everything is a node:
1. The document itself is a document node.
2. All HTML elements are element nodes.
3. All HTML attributes are attribute nodes.
4. Text inside HTML elements are text nodes.
5. Comments are comment nodes.
73
What does the NamedNodeMap object represent in the HTML DOM?
Discuss
Answer & Solution
Answer: Option D
Solution:
In the HTML DOM, the NamedNodeMap object represents an unordered collection of an elements attribute nodes.
74
What is the purpose of the Attr object in the HTML DOM?
Discuss
Answer & Solution
Answer: Option B
Solution:
In the HTML DOM, the Attr object represents an HTML attribute.
75
What is the work of the form control elements in the HTML DOM?
Discuss
Answer & Solution
Answer: Option A
Solution:
Form control elements: The form object contains all the elements defined for that object such as text fields, buttons, radio buttons, and checkboxes.
76
How are the objects organized in the HTML DOM?
Discuss
Answer & Solution
Answer: Option C
Solution:
The objects are organized in the hierarchy format in the HTML DOM.
77
Which of the following is a type of HTML DOM?
Discuss
Answer & Solution
Answer: Option D
Solution:
All of the above mentioned are types of HTML DOM.
78
What is the purpose of the Legacy DOM ?
Discuss
Answer & Solution
Answer: Option B
Solution:
The Legacy DOM: This is the model which was introduced in early versions of JavaScript language. It is well supported by all browsers, but allows access only to certain key portions of documents, such as forms, form elements, and images.
79
Which object is the top of the hierarchy?
Discuss
Answer & Solution
Answer: Option A
Solution:
Window object is the top of the hierarchy. It is the outmost element of the object hierarchy.
80
In which part does the form validation occur?
Discuss
Answer & Solution
Answer: Option B
Solution:
Form validation used to occur at the server, after the client had entered all necessary data and then pressed the Submit button.