getcertified4sure.com

70 480 dumps pdf [May 2021]




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

Q41. You are developing a customer contact form that will be displayed on a page of a company's website. The page collects information about the customer. 

If a customer enters a value before submitting the form, it must be a valid email address. 

You need to ensure that the data validation requirement is met. 

What should you use? 

A. <input name="email" type="url"/> 

B. <input name="email" type="text" required="required"/> 

C. <input name="email" type="text"/> 

D. <input name="email" type="email"/> 

Answer:


Q42. 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. Blink 

C. Line-through 

D. 20px 

Answer:


Q43. You develop a web application by using jQuery. You develop the following jQuery code: (Line numbers are included for reference only.) 

The web application exposes a RESTful web API that has an endpoint of/product/create. 

You need to create a new product by using AJAX. 

Which code segment should you insert at line 05? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


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


Q45. 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. <nav> 

B. <article> 

C. <span> 

D. <div> 

Answer:


Q46. You are developing an HTML5 web application that displays the current temperature whenever a button is clicked. The following code provides this functionality. 

When the temperature is loaded, the status property on the loader instance does not change. 

You need to ensure that the status property on the loader instance is updated when the temperature is loaded. 

Which code segment should you use to replace the Loader function? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:


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


Q48. You create an application that sends information to a web service by using the following code: (Line numbers are included for reference only.) 

When the web service returns a non-zero result code, you must raise an exception that contains the result code. 

You need to implement the code that generates the exception. 

Which line of code should you insert at line 04? 

A. CustomError .prototype = Error.prototype; 

B. CustomError ["ErrorType"] = Error; 

C. CustomError.customError = true; 

D. Error-constructor = CustomError; 

Answer:


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


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