Proper study guides for Updated Microsoft Programming in HTML5 with JavaScript and CSS3 certified begins with Microsoft 70 480 exam preparation products which designed to deliver the Printable microsoft 70 480 questions by making you pass the exam 70 480 dumps test at your first time. Try the free exam 70 480 dumps free download pdf demo right now.
Q31. You are developing an application that consumes a Windows Communication Foundation (WCF) service.
The application interacts with the service by using the following code. (Line numbers are included for reference only.)
You need to authenticate to the WCF service.
What should you do?
A. At line 11, add the following lines of code. ,username: yourusername ,password: yourpassword
B. At line 11, add the following line of code. ,credentials: prompt
C. At line 06, replace the code with the following line of code. url: "http://contoso.com/Service.svc/GetCountry? Username=username&password=psssword",
D. At line 11, add the following line of code. The username and password will be stored in an XML file. ,credentials: credentials.xml
Answer: A
Q32. 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
Q33. You develop an HTML5 application that interacts with a REST service. The REST service accepts JSON data. A JavaScript object named form Data contains data that is sent to the REST service.
You need to convert the JavaScript object named formData into JSON.
Which code segment should you use?
A. jQuery.ajax.valueOf(formData);
B. window.evai(formData);
C. JSON.stringify (formData);
D. formData.toString();
Answer: C
Q34. You are developing a web application that uses web workers to process images extracted from an HTML5 CANVAS object on a web page.
You need to pass messages between the web workers and the web page.
Which three types of objects should you use? (Each correct answer presents a complete solution. Choose three.)
A. JSON
B. Window
C. Parent
D. String
E. JavaScript
F. DOM
Answer: ADE
Q35. Your company uses a third-party component that generates HTML for a website. The third-party component creates DIV elements that display a yellow background.
The third-party component uses inline styles in the DIV elements that are inconsistent with your corporate standards. You must override the DIV elements in the style sheet with the corporate styles.
You need to ensure that the website meets corporate standards.
Which style should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q36. You develop an HTML5 webpage that contains the following HTML markup:
Users must receive a message after they click the Submit button if the text entered into the
favoriteColor text box is fewer than 2 characters or greater than 10 characters.
You need to implement the testLength() function.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q37. You are creating a JavaScript object that represents a customer.
You need to extend the Customer object by adding the GetCommission method.
You need to ensure that all future instances of the Customer object implement the GetCommission method.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q38. You are developing a web form that includes the following code.
When a user selects the check box, an input text box must be added to the page dynamically.
You need to ensure that the text box is added.
Which function should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Q39. You develop an HTML5 webpage. You have the following HTML markup:
You need to add a background color to the first article in each section.
Which code segment should you add to the webpage?
A. $ ("section article:first-child").css("background-color", "#f2f2f2");
B. $ ("section:first-child").ess ( "background-color", "#f2f2f2");
C. $ ("article:first-of-type") .css("background-color", "#f2f2f2");
D. $ ("section:first-of-type").css("background-color", "#f2f2f2");
Answer: C
Q40. You are developing a customer web form that includes the following HTML.
<input id="txtValue"/>
You need to change the HTML markup so that customers can enter only a valid three-letter country code.
Which HTML should you use?
A. <input id="txtValue" type="country"/>
B. <input id="txtValue" type="text" required="xxx"/>
C. <input id="txtVa!ue" type="text" pattern-" [A-Za-z] {3} "/>
D. <input id="txtValuen type="code" pattern"="country"/>
Answer: C