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
- Q1
In HTML, every file is interpreted as a:
Show answer
Correct answer: B. DOM-tree
HTML files are read as a DOM-tree.
- Q2
Each object/component of HTML in the DOM is treated as a:
Show answer
Correct answer: B. Node
Each component is a node in the DOM-tree.
- Q3
Which function locates an element using its ID?
Show answer
Correct answer: B. getElementById()
getElementById() finds an element by its id.
- Q4
DOM stands for:
Show answer
Correct answer: A. Document Object Model
DOM means Document Object Model.
HTML Document Object Model (DOM) short questions
What is the HTML DOM? Give an example.
Important