3.2.1 HTML Document Object Model (DOM)

9 Computer Science · Chapter 3: Programming Fundamentals · Federal Board (FBISE)

3.2.1 HTML Document Object Model (DOM) from Federal Board 9 Computer Science (9th Class) Chapter 3, Programming Fundamentals: 1 short and long question and 4 MCQs with answers.

HTML Document Object Model (DOM) MCQs

  1. Q1

    In HTML, every file is interpreted as a:

    1. AFlowchart
    2. BDOM-tree
    3. CDatabase
    4. DTable
    Show answer

    Correct answer: B. DOM-tree

    HTML files are read as a DOM-tree.

  2. Q2

    Each object/component of HTML in the DOM is treated as a:

    1. ALink
    2. BNode
    3. CRoot only
    4. DLeaf only
    Show answer

    Correct answer: B. Node

    Each component is a node in the DOM-tree.

  3. Q3

    Which function locates an element using its ID?

    1. AgetElementByName()
    2. BgetElementById()
    3. Cwrite()
    4. Dprompt()
    Show answer

    Correct answer: B. getElementById()

    getElementById() finds an element by its id.

  4. Q4

    DOM stands for:

    1. ADocument Object Model
    2. BData Object Mode
    3. CDocument Order Method
    4. DDisplay Object Model
    Show answer

    Correct answer: A. Document Object Model

    DOM means Document Object Model.

HTML Document Object Model (DOM) short questions

  1. What is the HTML DOM? Give an example.

    Important

Chapter 3 study material

A little trouble connecting

We could not reach IlmiDunya. Your connection may be slow or interrupted. Check your connection and try again.

If you were saving or submitting, check the result before trying again.

Account blocked

You are blocked from using IlmiDunya. Contact support to unblock your account.