You are on page 1of 4

1. Which of the following is the latest DOM recommendation from the W3C?

  DOM 1.5

  DOM level 1

  DOM level 2

  None of the above

2. Which of the following is an important way of making sure your scripts will
work with future browsers?

  Follow HTML, JavaScript, and DOM standards.

  Spend an hour a day downloading the newest browsers and testing your scripts.

  Wait until the very last browsers are released before writing any scripts.

  All of these

3. What is DOM ?

  Dynamic Object Model

  Document Object Model

  Distributed Object Model

  None of these

4. The DOM presents an HTML document as a __________ .

  Hash table structure

  Dynamic structure

  Tree-structure

  All of these

5. Which defines a standard set of objects for any structured document ?

  HTML DOM

  Core DOM

  XML DOM

  None of these

6. In how many defferent parts is the DOM divided ?

  2
  4

  3

  1

7. According to the DOM, everything in an HTML document is a _________ .

  Tree

  Node

  Table

  Branches

8. You can find the element you want to manipulate in ________ way ?

  getElementById()

  getElementsByTagName()

  All of these

  None of these

9. What is the syntax of getElementById() ?

  document.getElementsByTagName("tagname");

  document.getElementsByTagName;

  getElementsByTagName("tagname");

  getElementsByTagName.document("tagname");

10. A Window object is created automatically with every instance of ________ .

  <head>

  <title>

  <table>

  <body>

11. Every node has some properties that contain some information about the
node. The properties are__________ .

  nodeName

  nodeValue

  nodeType
  All of these.

12. The nodetype for document returns the ________ value.

  2

  9

  3

  8

13. The Document object is part of the Which object ?

  Tree

  System

  Window

  None of these.

14. The _______ object represents an HTML hyperlink.

  href

  Anchor

  Reference

  None of these.

15. Which object represents a push button in HTML DOM ?

  PushButton

  Input Button

  Button

  None of these.

16. In list below, which is not the HTML DOM Object ?

  Area

  Image

  Frame

  TextBox

17. The History object is actually a ________ object.


  JavaScript

  HTML DOM

  XML DOM

  Core DOM

18. The History object is automatically created by the JavaScript runtime engine
and consists of an array of _______ .

  Images

  URLs

  JavaScript Commands

  None of these.

19. The Location object is automatically created by the_______________ and


contains information about the current URL.

  HTML

  Browser

  Java Compiler

  JavaScript runtime engine

20. You can access a radio object by searching through the elements[] array of
the form, or by using ______________ .

  getElementById()

  document.getElementById()

  document.get()

  All of these

You might also like