getcertified4sure.com

Questions Ask for 70 480 dumps




Exam Code: exam ref 70 480 (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Programming in HTML5 with JavaScript and CSS3
Certification Provider: Microsoft
Free Today! Guaranteed Training- Pass microsoft exam 70 480 Exam.

Q51. You are developing an HTML page that includes the following code. 

<h1 id="header">A Static Page</hl> 

You need to modify the content of the HI element dynamically by using JavaScript. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D


Q52. You are developing an HTML5 page named main.html. The JavaScript code for the main page is located in a file named myApp.js. 

You need to create a web worker and instantiate it from main.html. 

Where should you place the web worker code? 

A. In the myApp.js file 

B. In the main.html file 

C. In a separate .js (JavaScript) file 

D. In a separate executable file 

Answer: C


Q53. 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="code" /> 

B. <input id="txtValue" type="text" pattern=" [A-Za-z] {3}" /> 

C. <input id="txtValue" type="text" required="required"/> 

D. <input id="txtValue" type="country" /> 

Answer:


Q54. You are developing a web page that consumes a Windows Communication Foundation (WCF) service. The page includes the following code segment. 

var xhr = new XMLHttpRequest() ; 

The page uses the xhrHandler() method to listen for changes to the request status of the WCF service calls. It uses the xmlToJavaScript() method to convert the response from the WCF service to a JavaScript object. 

The xhrHandler() method must be called automatically each time the request status changes. 

You need to add the event handler to the request object. 

Which line of code should you use? 

A. xhr.onCallback = xhrHandler; 

B. xhr.onreadystatechange = xhrHandler; 

C. xhr.readyState = xhrHandler; 

D. xhr.status = xhrHandler; 

Answer:


Q55. You are developing an e-commerce website. Users place products into a shopping cart. You need to ensure that the shopping cart data is available between browser sessions. Which object should you use to store the shopping cart data? 

A. clientStorage 

B. localStorage 

C. applicationStorage 

D. sessionStorage 

Answer: B


Q56. You are developing a web application that consumes services from a third-party application. A web worker processes the third-party application requests in the background. A page in the application instantiates the web worker process. 

You need to establish two-way communications between the web worker process and the 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. 

Answer: BC 


Q57. You develop an HTML5 webpage. You have the following HTML markup: 

<input type="text" id="username" /> 

You need to prevent users from entering specific characters into the username field. 

What should you do? 

A. Using the keyup event, add an anonymous function that returns true when a specific character keycode value is determined. 

B. Using the change event, add an anonymous function that returns true when a specific character keycode value is determined. 

C. Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined. 

D. Using the change event, add an anonymous function that returns false when a specific character keycode value is determined. 

Answer: B


Q58. You are creating a web form that users will use to enter their personal information. The form includes the following HTML. 

<body>

  <table>

<tr>

  <td>Item</td>

  <td>Input</td>

  <td>Current</td>

</tr>

<tr>

  <td>First Name</td>

<td>

  <input type=”text”/>

</td>

<td></td>

</tr>

<tr>

<td>Last Name</td>

<td>

  <input type=”text”/>

</td>

<td></td>

</tr>

</table>

</body>

You have the following requirements: 

. When a user enters an input box, the cell on the right must turn green. 

. When a user leaves an input box, the cell on the right must turn white. 

You need to create the web form to meet these requirements. Which code segment should you use? 

A. Option A B. Option B 

C. Option C 

D. Option D 

Answer:


Q59. You develop an HTML5 application. The application uses an image that is returned from an HTTP POST request. 

You develop the following code: (Line numbers are included for reference only.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B


Q60. You are developing an HTML5 web application and are styling text. 

You need to use the text-transform CSS property. 

Which value is valid for the text-transform property? 

A. lowercase 

B. 20px 

C. line-through 

D. italic 

Answer: