Exam Code: microsoft exam 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 70 480 exam dumps Exam.

Q1. You are developing a customer web form that includes following HTML. 

<input id= "textAccountType"/> 

You need to develop the form so that customers can enter only a valid account type consisting of two English alphabet characters. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q2. You are developing a customer web form that includes following HTML. 

<input id="txtValue"/> 

You need to develop the form so that customers can enter only a valid country code consisting of three English alphabet characters. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


Q3. You are developing an application to track project management for your company. The status of the project is stored in a variable named percentComplete. 

The method must execute only when percentComplete is equal to the numeric value 100. 

You need to develop the application to meet the requirement. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D


Q4. You are creating a custom object as described by the following code. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: D


Q5. You are developing a web page that will be divided into three vertical sections. The main content of the site will be placed in the center section. The two outer sections will contain advertisements. 

You have the following requirements: 

. The main content section must be set to two times the width of the advertising sections. 

. The layout must be specified by using the CSS3 flexible box model. 

You need to ensure that the visual layout of the page meets the requirements. 

Which CSS3 property should you use? 

A. box-orient 

B. box-flex-group 

C. box-flex 

D. box-direction 

Answer:


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

You need to change the background color for all of the elements whose name attribute ends with the word name. 

Which code segment should you add to the webpage? 

A. $ ('#name').css ({ 'background-color' : '#E0ECF8' }); 

B. $ ('input [name |="name"; ] ' ) .css (( 'background-color' : '#E0ECF8'}); 

C. $('input[name$="name"]'). css{{'background-color' : '#E0ECF8'}); 

D. $ ('*name' ) .css ({ 'background-color' : ' #E0ECF8'}) ; 

Answer: C


Q7. 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:


Q8. 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: