In: Computer Science
1) As a browser load a web page, it creates a model of that namely Document Object Model (DOM) Tree.
True
False
2) Document Object Model (DOM) Tree consists of ________________ main types of nodes.
3
4
5
6
3) Which is not a type of Document Object Model (DOM) node?
Document Node
Element Node
Style Node
Attribute Node
4) Which Document Object Model (DOM) node represents the entire page?
Document Node
Element Node
Style Node
Attribute Node
5) The opening tag of HTML elements are linked to which Document Object Model (DOM) nodes?
Document Node
Element Node
Style Node
Attribute Node
6) Once you have access an element node, you can then reach the __________________ node.
value
text
style
property
7) The getElementById( ) can select multiple elements within the page.
True
False
8) The getElementByClassName( ) can select multiple elements within the page.
True
False
9) The getElementByTagName( ) can select multiple elements within the page.
True
False
10) The querySelector( ) and querySelectorAll( ) are used for the same purpose in the Document Object Model (DOM) node selection.
True
False
Answer 1: True
Answer 2: 3
Answer 3:Style Node
Answer 4:Attribute Node
Answer 5:Document Node
Answer 6:style
Answer 7:False
it will select only 1 element
Answer 8:true
it can select group of elements
Answer 9:True
it can select group of elements
Answer 10: true