70-480 Programming in HTML5 with JavaScript and CSS3
Javascript QUESTION 1 77-You are developing an HTML5 page that has an element with an ID o, picture. The page includes the,ollowing HTML You need to move the picture element lower on the page by,ive pixels. Which two lines o, code should you use? 1Each correct answer presents part o, the solution. Choose two.) A.document.getElementByld1"picture").style.position = "relative"; B.document.getElementByld1"picture").style.top = "5px"; C.document.getEiementByld1"picture").style.top = "-5px"; D.document.getElementByld1"picture").style.position = "absolute"; AB /Reference: QUESTION 2 93-You troubleshoot a webpage that contains the,ollowing HTML element: <canvas id= "clickcanvas" width-"300"> height= "300"> Your browser does not support the HTML5 canvas.</canvas> The,ollowing JavaScript code is included in a script tag in the HEAD section o, the webpage: 1Line numbers are included,or re,erence only.) You need to invoke the clickreporter1) JavaScript,unction when a user clicks the mouse on the canvas HTML element. What should you do? A.Add the,ollowing attribute to the canvas HTML element: clicked= "clickreporter1)" B.Replace the code segment at line 06 with the,ollowing code segment: drawbox.click += clickreporter; C. Insert the,ollowing code segment at line 07: canvas.onclick = clickreporter; D. Insert the,ollowing code segment at line 07: canvas, click = clickreporter; C /Reference: QUESTION 3 95-You create an application that sends in,ormation to a web service by using the,ollowing code: 1Line numbers are included,or re,erence only.) When the web service returns a non-zero result code, you must raise an exception that contains the result code You need to implement the code that generates the exception. Which line o, code should you insert at line 04? A. CustomError.prototype = Error.prototype; B. CustomError E"ErrorType"F = Error; C. CustomError.customError = true; D.Error-constructor = CustomError; A /Reference:
QUESTION 4 96-You are developing a customer web,orm that includes,ollowing HTML. <input id= "textaccounttype"/> You need to develop the,orm so that customers can enter only a valid account type consisting o, two English alphabet characters Which code segment should you use? A B C + B /Reference: QUESTION 5 97-You are developing an application that uses a JavaScript library. The library contains the,ollowing,unctions The application uses the,ollowing code. 1Line numbers are included,or re,erence only.)
The library may throw many types o, exceptions. The exceptions are grouped by category You need to catch and identi,y the exceptions by group. Which code segment should you insert at line 05? A B C D B /Reference: QUESTION 6 115-An HTML page contains no embedded JavaScript or CSS code. The body o, the page contains only the,ollowing line o, code. <p id="test">test</p> A CSS style sheet must be applied dynamically. The style must visibly change the appearance o, the paragraph on the page. You need to apply a style the paragraph. Which line o, code should you use? A.document.getElementByld1"test").style.border = "0"; B.document.getElementByld1"test").style.position = "static"; C.document.getElementByld 1"test").style.padding = "15px"; D.document.getElementByld1"test").style.top = "5px"; C /Reference: QUESTION 7 119-You are developing a web application that can,unction when users are not connected to the Internet You need to check the Internet connectivity status o, a user's browser. Which method should you use?
A B C D D /Reference: QUESTION 8 120-You are creating a page that contains detailed employee in,ormation,or a company portal. The page uses a jquery library. The page contains a hidden button named btnedit that is de,ined by the,ollowing code. <button id="btnedit" style="display: none;n>edit</button> The button is not displayed by de,ault. The button must be displayed only i, the user is logged on. You need to add code to the document.ready1),unction to meet the requirements,or the button. Which line o, code should you use? A. $1LMbtnEdit').appear 1); B. $1LMbtnEdit').visible=true; C. $1LMbtnEdit').show1); D. $1LMbtnEdit').Visible1); C /Reference: QUESTION 9 126-You are developing an application that analyzes population data,or major cities in the United States The application retrieves population statistics,or a city by using a web service. You need to request data,rom the web service by using jquery. Which code segment should you use?
A B 3 D D /Reference: QUESTION 10 128-You develop a web application by using jquery. You develop the,ollowing jquery code: 1Line numbers are included,or re,erence only.) The web application exposes a REST,ul web API that has an endpoint o,/product/create You need to create a new product by using AJAX. Which code segment should you insert at line 05?
Thank you for downloading Demo dumps from www.updateddumps.com. You have invested or going to invest hundreds of dollars for your certification exam fees; you can invest just few additional dollars to make sure you will pass the exam for sure. Don t waste your important time & internet bandwidth in search of invalid dumps. Also now you no need to pay $50 to $60 USD for VCE player or A+ player. Now Get 22% discount use coupon code: DIS2015IO22OFF You can download PDF file from our site: www.updateddumps.com in just couple of dollars It s like you are paying for a coffee treat for your friend you help you to pass the exam. ** now you can pay in any currency as per your continuance with our 2checkout secure site enjoy ** We provide 100% refund guaranty if you don t pass your exam with no question ask because we know you will pass the exam with our sure shot dumps. All the best for your exam!!! www.updateddumps.com Support Service. admin@updateddumps.com.