Practice Quiz 1
When referring to items in ordered lists JavaScript starts counting with what number?
A. 0
B. 1
C. It counts backwards from the end
D. -1
How do you refer to the third element of the second form on a page?
A. document.forms[2].elements[2]
B. document.forms[0].elements[1]
C. document.forms[1].elements[2]
D. document.forms[2].elements[3]
Which is the top JavaScript Object?
A. document
B. window
C. form
D. element
Which Object is not contained by the document Object?
A. form
B. image
C. window
D. link
Which Object contains all Objects that are visible on a Web page?
A. array
B. image
C. document
D. form
Knowing the document Object hierarchy helps you:
A. build your own browser
B. refer to Objects on a Web page
C. write better HTML
D. win on Jeopardy
You can change the way an Object appears on a Web page by changing its:
A. name
B. Properties
C. position
D. image
Which of the following is a Property of the document Object?
A. bgColor
B. BGColor
C. bgcolor
D. background color
JavaScript code is most often placed where?
A. Inside separate text files
B. After the HTML in a Web document
C. Before the HTML in a Web document
D. In the head section of an HTML document
if var myStr = "Let's see what happens!" then myStr.substring(0, 7) equals
A. et's (Let's with a space after the 's)
B. Let's s
C. Let's se
D. none of the above
You have:
answers correct out of a possible ten.
The question numbers that were not correct are: