70-480 Premium Bundle

70-480 Premium Bundle

Programming in HTML5 with JavaScript and CSS3 Certification Exam

4.5 
(22980 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
November 21, 2024Last update

Microsoft 70-480 Free Practice Questions

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

Q2. You are developing an HTML5 web application that provides a discussion forum for users. When a user registers to access the application, the user enters an email address. 

Users can enter data that can result in cross-site scripting (XSS) attacks. 

You need to ensure that email input is as secure as possible. 

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

A. Remove all nonalphanumeric characters before submitting data. 

B. Use the email tag in forms where the email address is entered. 

C. Display all email addresses inside of an HTML5 ADDRESS element. 

D. Use jQuery validation with a regular expression to ensure that email addresses are valid. 

E. Ensure that all form data is encrypted when it is submitted. 

Answer: BD

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

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

Q5. 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. <span> 

B. <nav> 

C. <cable> 

D. <section> 

Answer:

Q6. You are creating a rotating image of a company logo. 

The logo must spin on a horizontal axis and on a vertical axis. 

You need to use the least amount of development effort to meet the requirement. 

What should you do? 

A. Create an Image Spinner object, load the image into the spinner, and set the horizontal and vertical rotation properties. 

B. Create a Canvas Globe transform and set the image as the globe object. Set the horizontal and vertical rotation properties. 

C. Create a single Canvas 3D transform and load the image into it. Set the rotation properties. 

D. Create a Canvas 2D transform and set the image to rotate horizontally and vertically. 

Answer: C

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

Q8. You are developing an HTML5 web application for an architectural company that displays architectural blueprints. 

The application must: 

Display the blueprints at different zoom levels without loss of detail Print the blueprints without loss of detail Work from only one source file per blueprint 

You need to ensure that blueprints display according to the requirements. 

Which HTML5 element should you use? 

A. CANVAS 

B. SAMP 

C. SVG 

D. AREA 

Answer:

Q9. 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. Capitalize 

B. Red 

C. 20px 

D. Italic 

Answer:

Q10. You develop a webpage by using HTML5. You create the following markup: 

<input type "url" name= "website" required="required" /> 

You need to ensure that the value that the user enters contains a secure URL. 

What should you do? 

A. Add the following attribute to the input tag: value="https://v 

B. Add the following attribute to the input tag: pattern="https://.+" 

C. Add the following attribute to the input tag: value="ssl" 

D. Add the following attribute to the input tag: itemtype="https" 

Answer: B

Q11. You are creating a blog site by using HTML5 and JavaScript. An inline frame enables users to post comments. It is possible for users to inject malicious scripts into their comments. 

You need to minimize the ability for malicious scripts to execute on the site. 

Which line of code should you use? 

A. <iframe sandbox src="frame1.htmlnX/iframe> 

B. <iframe seamless="allowscripts" src="frame1.html"<>/iframe> 

C. <iframe seamless src="frame1.html"></iframe> 

D. <iframe sandbox="allowscripts" src"frame1.html"x/iframe> 

Answer: A

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

Q13. You are modifying an existing web page. The page is being optimized for accessibility. The current page contains the following HTML. 

Standards-compliant screen readers must be able to identify the links contained within the navigation structure automatically. 

You need to create the navigation link structure in the page. 

With which container tags should you wrap the existing markup? 

A. <navmap> </navmap> 

B. <div id="nav"> </div> 

C. <nav> </nav> 

D. <map> </map> 

Answer:

Q14. 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. $ ('input [name!="name"]’) .ess ({ 'background-color' : ' #E0ECF8'}) ; 

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

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

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

Answer: D

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

START 70-480 EXAM