Deck 12: Document Object Model Dom: Objects and Collections
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/9
Play
Full screen (f)
Deck 12: Document Object Model Dom: Objects and Collections
1
What is the significance of the second function argument in the following line
Window.setInterval( "run()", 100 );
A) The value sets how many times to call the function specified in the first argument.
B) The value sets how long the function is run for.
C) The value sets how often to run the function.
D) The value sets the time to wait before calling the function once.
Window.setInterval( "run()", 100 );
A) The value sets how many times to call the function specified in the first argument.
B) The value sets how long the function is run for.
C) The value sets how often to run the function.
D) The value sets the time to wait before calling the function once.
C
2
In the statement node1.replaceChild( node2, node3 ) , ________ replaces ________.
A) node3, node1
B) node1, node3
C) node2, node3
D) node3, node2
A) node3, node1
B) node1, node3
C) node2, node3
D) node3, node2
C
3
Which of the following is the proper way to dynamically access the background color
A) document.body.style.BackgroundColor
B) document.body.attributes.BackgroundColor
C) document.body.style.backgroundColor
D) document.body.style.background-color
A) document.body.style.BackgroundColor
B) document.body.attributes.BackgroundColor
C) document.body.style.backgroundColor
D) document.body.style.background-color
C
4
Which of these is the method of the window object that stops repetitive calls to a method
A) clearTimer
B) stopTimer
C) stopInterval
D) clearInterval
A) clearTimer
B) stopTimer
C) stopInterval
D) clearInterval
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
5
The elements in a web page are represented by a(n) ________.
A) object hierarchy
B) parent tree
C) dynamic HTML
D) DOM property
A) object hierarchy
B) parent tree
C) dynamic HTML
D) DOM property
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
6
Function getElementById returns a(n)________.
A) boolean
B) string
C) id attribute
D) object
A) boolean
B) string
C) id attribute
D) object
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following is not a DOM collection
A) roots
B) anchors
C) links
D) forms
A) roots
B) anchors
C) links
D) forms
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
8
An HTML5 element inside another element is a ________ of the containing element.
A) parent
B) child
C) instance
D) sub-element
A) parent
B) child
C) instance
D) sub-element
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
9
The fifth link on a page can be accessed using
A) links.item(4)
B) links[4]
C) either a or b
D) neither a nor b
A) links.item(4)
B) links[4]
C) either a or b
D) neither a nor b
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck