70-480 Premium Bundle

70-480 Premium Bundle

Programming in HTML5 with JavaScript and CSS3 Certification Exam

4.5 
(12390 ratings)
0 QuestionsPractice Tests
0 PDFPrint version
December 3, 2024Last update

Microsoft 70-480 Free Practice Questions

Q1. You are developing an e-commerce website. Users place products into a shopping cart. You need to ensure that the shopping cart data is available between browser sessions. Which object should you use to store the shopping cart data? 

A. clientStorage 

B. localStorage 

C. applicationStorage 

D. sessionStorage 

Answer: B

Q2. You are creating a custom function. You pass an object named testObj to the function as a parameter. You do not use inheritance through the functions. 

The function must establish whether testObj inherits from another object named parentObj. 

You need to ensure that the function performs as required. 

Which method or operator should you add to the function? 

A. parentObj.instanceof(testObj) 

B. testObj.isPrototypeOf(parentObj) 

C. testObj.instanceof(parentObj) 

D. parentObj.isPrototypeOf(testObj) 

Answer: B

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

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

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

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

A customer must enter a valid age in the text box prior to submitting the form. 

You need to add validation to the control. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

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

Q7. You are developing application web form by using HTML5 and JavaScript. You need to prevent users from submitting form data more than once. Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q8. You are developing a web page by using HTML5 and C5S3. The page includes a <div> tag with the ID set to validate. 

When the page is rendered, the contents of the <div> tag appear on a line separate from the content above and below it. The rendered page resembles the following graphic. 

You need to ensure that the page is rendered to meet the requirement. 

Which line of code should you use? 

A. document.getElementById("validate").style.display = "inline"; 

B. document.getElementById("validate").style.margin = "0"; 

C. document.getElementById("validate").style.padding = "0"; 

D. document.getElementSyId("validate").style.display = "block"; 

Answer:

Q9. You are developing a web page. You create a grid layout by using the following CSS segment. 

You have the following requirements: 

. You must place content in the first column of the second row. 

. The content must span two columns. 

You need to ensure that the style of the grid meets the requirements. 

Which CSS segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q10. 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. <article> 

B. <table> 

C. <div> 

D. <span> 

Answer:

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

Q12. You are creating a web page that contains a canvas with text. 

The page contains the following JavaScript code. (Line numbers are included for reference only.) 

The text on the canvas must rotate 90 degrees when a user clicks a button on the page. 

You need to ensure that the text rotates when the user clicks the button. 

Which line of code should you add at line 03? 

A. context.transform(90); 

B. context.content.getRotation(90); 

C. context.rotate(90); 

D. context.content.rotate (90); 

Answer: C

Q13. You develop an HTML5 chat application. 

You need to provide real-time updates to the messages that users post in the chat application. 

What should you do? 

A. Use get o to obtain data updates. 

B. Use a RESTful web service. 

C. Use WebSockets. 

D. Use ajaxo to obtain data updates. 

Answer: C

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

Q15. You develop an application to host user-generated HTML and JavaScript content. 

A common error handler in your application must process all unhandled errors. 

You need to implement global error handling for the application. 

Which code segment should you use? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer: A

START 70-480 EXAM