Multiple Choice
Case 11-2
Gerard has inherited some messy code from Sheena,a colleague who had to move onto another project in a hurry before she had a chance to clean it up for him and leave it in better shape.He has some work to do to clean it up.
-Gerard has found another problem.He knows that Sheena was trying to assign an image to a defined location,but this,too,is not working.How should he rewrite the statement so that it will work? Assume that the file to be assigned to the image object source property is hickory-jpg"
A) document.elementID(img) .src="hickory-jpg"
B) document.acquire(img) .src="hickory-jpg"
C) document.get(img) .src="hickory-jpg"
D) document.getElementById(img) .src="hickory-jpg"
Correct Answer:

Verified
Correct Answer:
Verified
Q88: You can use an event handler to
Q89: Which of the following is a step
Q90: The _ attribute identifies the object for
Q91: A(n)_ selector is used to identify one
Q92: A(n)_ is a number that designates a
Q94: Object positions can be changed within a
Q95: The first item in a JavaScript array
Q96: JavaScript must use the _ method to
Q97: Which of the following is true?<br>A)JavaScript arrays
Q98: The _ statement executes an expression as