Deck 12: Document Object Model Dom: Objects and Collections

Full screen (f)
exit full mode
Question
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.
Use Space or
up arrow
down arrow
to flip the card.
Question
In the statement node1.replaceChild( node2, node3 ) , ________ replaces ________.

A) node3, node1
B) node1, node3
C) node2, node3
D) node3, node2
Question
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
Question
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
Question
The elements in a web page are represented by a(n) ________.

A) object hierarchy
B) parent tree
C) dynamic HTML
D) DOM property
Question
Function getElementById returns a(n)________.

A) boolean
B) string
C) id attribute
D) object
Question
Which of the following is not a DOM collection

A) roots
B) anchors
C) links
D) forms
Question
An HTML5 element inside another element is a ________ of the containing element.

A) parent
B) child
C) instance
D) sub-element
Question
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
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/9
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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.
C
2
In the statement node1.replaceChild( node2, node3 ) , ________ replaces ________.

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
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
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
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
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
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
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
Unlock Deck
Unlock for access to all 9 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 9 flashcards in this deck.