Caching And Debugging(Computer Science > Javascript ) Questions and Answers

Question 1. What is the purpose of the method nodeMap.setNamedItem()?
  1.    Sets ID
  2.    Sets attribute node
  3.    Sets element name
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Sets attribute node

Question 2. How is everything treated in HTML DOM?
  1.    Node
  2.    Attributes
  3.    Elements
  4.    All of the mentioned
Explanation:-
Answer: Option A. -> Node

Question 3. What does the NamedNodeMap object represent in the HTML DOM?
  1.    Unordered collection of elements
  2.    Unordered collection of attributes
  3.    Unordered collection of nodes
  4.    All of the mentioned
Explanation:-
Answer: Option D. -> All of the mentioned

Question 4. What is the purpose of the Attr object in the HTML DOM?
  1.    Used to focus on a particular part of the HTML page
  2.    HTML Attribute
  3.    Used to arrange elements
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> HTML Attribute

Question 5. What is the work of the form control elements in the HTML DOM?
  1.    User Interface elements
  2.    All the possible elements
  3.    Debugging elements
  4.    None of the mentioned
Explanation:-
Answer: Option A. -> User Interface elements

Question 6. How are the objects organized in the HTML DOM?
  1.    Class-wise
  2.    Queue
  3.    Hierarchy
  4.    None of the mentioned
Explanation:-
Answer: Option C. -> Hierarchy

Question 7. Which of the following is a type of HTML DOM?
  1.    Legacy DOM
  2.    W3C DOM
  3.    IE4 DOM
  4.    All of the mentioned
Explanation:-
Answer: Option D. -> All of the mentioned

Question 8. What is the purpose of the Legacy DOM ?
  1.    Makes the scripting easier
  2.    Allows access to few keys and elements
  3.    All of the mentioned
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Allows access to few keys and elements

Question 9. Which object is the top of the hierarchy?
  1.    Window Object
  2.    Document Object
  3.    Form Object
  4.    Form Control Elements
Explanation:-
Answer: Option A. -> Window Object

Question 10. In which part does the form validation occur?
  1.    Client
  2.    Server
  3.    Both Client and Server
  4.    None of the mentioned
Explanation:-
Answer: Option B. -> Server