70-480 Premium Bundle

70-480 Premium Bundle

Programming in HTML5 with JavaScript and CSS3 Certification Exam

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

Microsoft 70-480 Free Practice Questions

Q1. You are developing a web page that will contain an animated logo. The web page currently has a logo image on a canvas object. 

You need to spin the logo image on the canvas. 

Which method should you use? 

A. context.rotate() 

B. context.spin() 

C. context.translatePosition() 

D. context.setTransform() 

Answer: A

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

Q3. You develop an HTML5 webpage. You have the following JavaScript code: 

You need to handle the click event when a user clicks the show/Dialog button. 

Which code segment should you insert at line 02? 

A. $ (document).trigger("click", "#showDialog", function (e) { 

B. $ (document).on ("#showDialog", "click", function (e) { 

C. $(document).toggle("click", "#showDialog", function (e) { 

D. $(document).on("click", "#showDialog", function (e) { 

Answer: D

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

Q5. You develop an HTML application that is located at www.adventure-works.com. The application must load JSON data from www.fabrikam.com. 

You need to choose an approach for loading the data. 

What should you do? 

A. Add a crossdomain.xml file to the second server. 

B. Configure Cross-Origin Resource Sharing (CORS) on the servers. 

C. Load the data in a JavaScript timeout callback. 

D. Reference the remote data as an XML resource. 

Answer: B

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

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

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

Q9. You develop a webpage with a standard input control by using HTML5. 

The input control must display the text Enter your given name, as shown below: 

When a user selects the input control, the text must disappear. 

You need to create the input control. 

Which input control should you use? 

A. <input name="GivenName" value=" Enter your given name" /> 

B. <input name ="GivenName" default=" Enter your given name" /> 

C. <input name="GivenName" text=" Enter your given name" /> 

D. <input name="GivenName" placeholder=" Enter your given name" /> 

Answer: D

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 develop an HTML5 webpage. You have the following HTML markup: 

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

You need to prevent users from entering specific characters into the username field. 

What should you do? 

A. Using the keyup event, add an anonymous function that returns true when a specific character keycode value is determined. 

B. Using the change event, add an anonymous function that returns true when a specific character keycode value is determined. 

C. Using the keydown event, add an anonymous function that returns false when a specific character keycode value is determined. 

D. Using the change event, add an anonymous function that returns false when a specific character keycode value is determined. 

Answer: B

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

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

Q14. You develop an HTML application that contains a table that displays a list of products. The table is defined with the following HTML markup: 

You need to implement the CSS selectors to select the rows that must have a blue background. 

Which CSS selector should you use? 

A. thead:only-child, tbody:after, table:before 

B. tr [line |-0, 1, 3] 

C. tr:first-of-type, tr:last-of-type 

D. tr:first-line, tr:last-child 

Answer:

Q15. You are developing a web page that performs CPU-intensive calculations. A web worker processes these calculations on a separate background thread. The process is instantiated from the web page. 

You need to stop the web worker process after the calculations are completed. 

Which two actions can you perform to achieve this goal? (Each correct answer presents a complete solution. Choose two.) 

A. From the web page, call the close() method. 

B. From the web worker process, call the terminate() method. 

C. From the web page, call the terminate() method. 

D. From the web worker process, call the close() method. 

Answer: CD

START 70-480 EXAM