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

certleader.com

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

B. hidden 

C. lowercase 

D. italic 

Answer:

Q2. You develop an HTML5 webpage that contains the following HTML markup: 

You have the following requirements: 

. Retrieve the content for any OPTION elements when the value of the selected attribute equals selected. . Add the content to a comma separated string. 

You need to retrieve the required data. 

Which two code segments should you add to the webpage? (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: BD

Q3. You develop an HTML5 webpage. You have the following HTML markup: (Line numbers are for reference only.) 

You need to determine how the webpage will appear when the CSS styles are applied. 

Select two. 

A. The first row of the table will have a red background. 

B. The second row of the table will have a red background. 

C. The second cell in the first row of the table will have a blue background. 

D. The second cell in the third row of the table will have a blue background. 

E. The second cell in the third row of the table will have not have blue background. 

Answer: AE 

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

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 are developing a JavaScript library. 

You have the following requirements: 

Custom exceptions must include an error message and custom error number. These exceptions must be thrown when data validation errors occur. Developers must call the library to easily catch the exception and identify the problem. 

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

You need to complete the code to meet the requirements. 

Which line of code should you insert at line 09? 

A. throw new Validatior.Exception (123, "Day of week must be les3 than 7"); 

B. return new ValidationException(123, "Day of week must be less than 7"); 

C. throw ValidationException(123, "Day of week must be less than 7"); 

D. catch ValidationException(123, "Day of week: must be less than 7"); 

Answer: A

Q7. You are developing an application that analyzes population data for major cities in the United States. The application retrieves population statistics for a city by using a web service. 

You need to request data from the web service by using jQuery. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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

Q9. You are developing an HTML5 web form to collect feedback information from site visitors. 

The web form must display an INPUT element that meets the following requirements: 

Allow numeric values between 1 and 10. 

Default to the value of 5. 

Display as a slider control on the page. 

You need to add the INPUT element to the form. 

Which HTML element should you add? 

A. Rating (Between 1 and 10): <input type="number" name="rating" min ="1" max-"10"> 

B. Rating (Between 1 and 10): <input type="number" name="rating" min="1" max="10" default="5"> 

C. Rating (Between 1 and 10): <input type="range" name="rating" min="0" max="10" default"="5"> 

D. Rating (Between 1 and 10): <input type="range" name="rating" min="10" max="10" value="5"> 

Answer: D

Q10. You are developing an HTML5 page. 

You need to add author and copyright information. 

Which tag should you use? 

A. <aside> 

B. <header> 

C. <footer> 

D. <section> 

Answer: