Question No: 56

You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?

vartxtContents =document.getElementById(#39;text1#39;).value;

vartxtContents = document.getEIementyById(#39;myText#39;).value;

vartxtContents =document.getElementById(#39;text1#39;);

vartxtContents = document.getElementById(#39;myText#39;);

Answer: B

Question No: 57

When you are working with the path API, what is the purpose of the clip method?

pastes a shape object in from the system clipboard

constrains the rendered output of the shape object

copies the shape object to the system clipboard

stores the shape object for later reference in script

Answer: B

Question No: 58

Which CSS property defines which sides of an element where other floating elements are not allowed?

float

position

display

clear

Answer: D

Question No: 59 DRAG DROP

Match the JavaScript objects to the corresponding characteristics or methods. (To answer, drag the appropriate JavaScript object from the column on the left to its characteristic or method on the right. Each JavaScript object may be used once, more than once, or not at all. Each correct match is worth one point.)