70-480 Exam - Programming in HTML5 with JavaScript and CSS3

certleader.com

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

Q2. You troubleshoot a webpage that contains the following HTML markup: (Line numbers are included for reference only.) 

The webpage also contains the following JavaScript function named someEvent() that is declared in the HEAD section of the HTML: 

Function someEvent() { Alert('someEvent fired!'); } 

The JavaScript function named someEvent() must run only when the user clicks the DIV element, not the INPUT elements. 

You need to modify the webpage to invoke the JavaScript function named someEvent(). 

What should you do? (Each correct answer presents a complete solution. Choose two.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: AB

Q3. You are modifying a blog site to improve search engine readability. 

You need to group relevant page content together to maximize search engine readability. 

Which tag should you use? 

A. <tbody> 

B. <article> 

C. <div> 

D. <span> 

Answer:

Q4. You develop an interactive scalable vector graphic (SVG) application. 

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

You need to increase the size of the circle by 50 percent. Which code segment should you insert at line 02? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

Q5. You are developing a web application by using HTML5. 

You have the following requirements. . The color of a menu item must change when a user hovers over the item. . The color of the menu item must change back to its original color after five seconds. You need to ensure that the animation is applied to all menu items. 

Which CSS3 code should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: C

Q6. 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

Q7. You create the following JavaScript code: 

You have the following requirements: 

. You must invoke a function that displays the vehicle information within the following HTML element: <div id="display"x/div> 

. The output of the function must appear on the webpage as follows: Vehicle Color is silverStay safe!Vehicle TransmissionType is manualBig machine! 

You need to invoke the JavaScript function to display the required output in the HTML element. 

Which two code segments should you use? (Each correct answer presents a complete solution. Choose two.) 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

E. Option E 

Answer: CE

Q8. You are developing an HTML5 web application. The application loads data from a web service by using AJAX. The application displays the data by calling the displayData function. The data is loaded by using the following code. 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: B

Q9. You are developing a web form that includes the following HTML. 

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

You need to ensure that a value is entered into txtValue before the form is submitted. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q10. You are developing an HTML5 page that includes several paragraph elements. 

You have the following requirements: 

. Add a drop shadow that is one inch below the text in the paragraph 

. Set the radius of the drop shadow to five pixels 

You need to style the paragraphs to meet the requirements. 

Which CSS style should you use? 

A. Text-shadow: 72pt 0pt 5pt 

B. Text-shadow: 5px lin 0px; 

C. Text-shadow: 72pt 0em 5px; 

D. Text-shadow: 100px 0px 5px; 

Answer: