70-480 PDF

How to use our free PDF

Our Free PDF is based on the full mock exams which is available on our Web Site. The PDF consists in an extract of questions and answers with detailed explanations that are available to be:

Q1.You are developing a web form that includes the following code.
[PIC-1]
When a user selects the check box, an input text box must be added to the page dynamically. You need toensure that the text box is added. Which function should you use?
A.
[PIC-2]


B.
[PIC-3]


C.
[PIC-4]


D.
[PIC-5]


Option B is correct.
Explanation:


Q2.You are developing an HTML5 page that has an element with an ID of logo. The page includes the followingHTML.
Logo:
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"; Option A,B are correct. Explanation: http://www.w3schools.com/cssref/pr_class_position.asp http://www.w3schools.com/cssref/pr_pos_top.asp Q3.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 thestatement that meets this requirement. Which lines of code should you use? (Each correct answer presentsa complete solution. Choose two.) A. if (length = = = 75) B. if (length = = 75) C. if (length! = 75) D. if (length = = "75") Option B,D are correct. Explanation: Q4.You are developing a web page by using HTML5 and C5S3. The page includes a
tag with the ID setto validate. When the page is rendered, the contents of the
tag appear on a line separate from thecontent above and below it. The rendered page resembles the following graphic. [PIC-6] The page must be rendered so that the
tag is not forced to be separate from the other content. Thefollowing graphic shows the correctly rendered output. [PIC-7] You need to ensure that the page is rendered to meet the requirement. Which line of code should you use? A. document.getElementById("validate").style.display = "inline"; B. document.getElementById("validate").style.margin = "0"; C. document.getElementById("validate").style.padding = "0"; D. document.getElementSyId("validate").style.display = "block"; Option A is correct. Explanation: http://www.w3schools.com/cssref/pr_class_display.asp Q5.You are creating a JavaScript function that displays the name of a web application. You declare thefollowing button element.When a user clicks the button, a JavaScript function named About must be called. You need to create anevent handler that calls the About function when the button is clicked. Which two code segments can youuse? (Each correct answer presents a complete solution. Choose two.) A. [PIC-8] B. [PIC-9] C. [PIC-10] D. [PIC-11] Option C,D are correct. Explanation: http://help.dottoro.com/ljeuqqoq.phphttp://help.dottoro.com/ljinxrmt.php Q6.You are developing an application that uses a third-party JavaScript library named doWork(). The libraryoccasionally throws an "object is null or undefined" error with an error code of -2146823281. The applicationmust:- Extract and handle the exceptions thrown by doWork() - Continue normal program execution if other exceptions occurYou need to implement the requirements. Which code segment should you use? A. [PIC-12] B. [PIC-13] C. [PIC-14] D. [PIC-15] Option C is correct. Explanation: Q7.You are troubleshooting a web page that includes the following code. (Line numbers are included forreference only.) [PIC-16] What is displayed in the alert from line 11? A. Div B. Function C. Button D. Document Option C is correct. Explanation: Q8.You are developing a web application that consumes services from a third-party application. A web workerprocesses the third-party application requests in the background. A page in the application instantiates theweb worker process. You need to establish two-way communications between the web worker process andthe page. Which two actions will achieve this goal? (Each correct answer presents a complete solution.Choose two.) A. From the web worker, use the onconnect event handler of the main page to capture events. B. From the main page, use the onmessage event handler of the web worker to capture events. C. From the web worker, use the onmessage event handler of the main page to capture events. D. From the main page, use the onconnect event handler of the web worker to capture events. Option B,C are correct. Explanation: http://www.w3schools.com/html/html5_serversentevents.asp http://www.html5rocks.com/en/tutorials/workers/basics/ Q9.You are developing an HTML5 web application that displays customer mailing address information. Theapplication loads addresses from a web service by using AJAX. The following code defines a Customerobject and loads address data. [PIC-17] You need to implement the loadAddress function. Which code segment should you use? A. [PIC-18] B. [PIC-19] C. [PIC-20] D. [PIC-21] Option C is correct. Explanation: Q10.You are developing an HTML5 web page. The appearance of the text box must change when a user movesthe focus to another element on the page. You need to develop the page to respond to user action. Whichline of code should you use? A. B. C. D. Option A is correct. Explanation: http://www.w3schools.com/jsref/event_onblur.asp