Sunday 1 February 2015

70-480 Question Answer

QUESTION NO :1

You are developing an HTML5 page that has an element with an ID of logo. The page includes the following HTML.
<div>
Logo:<br>
<div id=”logo”>
</div>
</div>
You need to move the logo element lower on the page by five pixels. Which lines of code should you use? (Each correct answer presents part of the solution. Choose two.)

A.    document.getElementById(“logo”) .style.position = “relative”;
B.    document.getElementByld(“logo”).Style.top = “5px”;
C.    document.getElementById(“logo”).style.top = “-5px”;
D.    document.getElementById(“logo”).style.position = “absolute”;

Answer: AB

 

QUESTION NO :2


You need to test the value of the following variable in JavaScript.
var length = “75”;
A block of code must execute if the length equals 75 regardless of the data type. You need to use the statement that meets this requirement. Which lines of code should you use? (Each correct answer presents a complete solution. Choose two.)

A.    if (length = = = 75)
B.    if (length = = 75)
C.    if (length! = 75)
D.    if (length = = “75”)

Answer: BD

No comments:

Post a Comment

Note: only a member of this blog may post a comment.