Ensurepass

QUESTION 81

You are troubleshooting an application. Users report that the UI is slow to respond. You need to improve UI responsiveness by moving application tasks to web workers. Which two tasks can you move to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

 

  1. A function that loops through the Document Object Model to update the style of page elements.

  2. A long-running calculation that requires looping through an array.

  3. A function that performs graphic-intensive animation.

  4. A function that stores large amounts of data to local storage.

 

Correct Answer: BC

 

 

QUESTION 82

You develop an interactive scalable vector graphic (SVG) application. You write the following code (Line numbers are included for reference only.):

 

70-480-demo-180

 

You need to increase the size of the circle by 50 percent. Which code segment should you insert at line 02?

 

  1.  

70-480-demo-181

  1.  

70-480-demo-182

  1.  

70-480-demo-183

  1.  

70-480-demo-184

 

Correct Answer: B

 

 

QUESTION 83

You develop an HTML5 webpage. You have the following HTML markup:

 

70-480-demo-185

 

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?

 

  1. $ (‘#name’).css ({ ‘background-color’ : ‘#E0ECF8’ });

  2. $ (‘input [name |=”name”; ] ‘ ) .css (( ‘background-color’ : ‘#E0ECF8’});

  3. $(‘input[name$=”name”]’). css{{‘background-color’ : ‘#E0ECF8’});

  4. $ (‘*name’ ) .css ({ ‘background-color’ : ‘ #E0ECF8’}) ;

 

Correct Answer: C

 

 

QUESTION 84

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?

 

  1. Design a REST URI scheme with multiple domains.

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

  3. Load the data by using WebSockets.

  4. Use the jQuery getJSON method.

 

Correct Answer: B

 

 

QUESTION 85

You are building a web page for a newspaper publisher. You have the following requirements:

 

  • The web page should split the content into columns that are at least 100 pixels wide.

  • The number of columns displayed must be set by the browser.

 

You need to implement the correct CSS properties. Which line of code should you use?

 

  1. <div id=”outer” style=”width: 100px; column-fill: balance;”>…</div>

  2. <div id=”outer” style=”width: 100px; column-gap: 10px;”>…</div>

  3. <div id=”outer” style=”column-width: 100px; “>. . .</div>

  4. <div id=”outer” style=”width: 100px; columns: 100px 3″>…</div>

 

Correct Answer: C

 

 

QUESTION 86

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:

 

70-480-demo-186

 

When a user selects the input control, the text must disappear. You need to create the input control. Which input control should you use?

 

  1. <input name=”GivenName” value=” Enter your given name” />

  2. <input name =”GivenName” default=” Enter your given name” />

  3. <input name=”GivenName” text=” Enter your given name” />

  4. <input name=”GivenName” placeholder=” Enter your given name” />

 

Correct Answer: D

 

 

QUESTION 87

You develop an HTML5 webpage. You have the following HTML markup:

 

70
-480-demo-187

 

You need to add a background color to the first article in each section. Which code segment should you add to the webpage?

 

  1. $ (“section article:first-child”).css(“background-color”, “#f2f2f2”);

  2. $ (“section:first-child”).ess ( “background-color”, “#f2f2f2”);

  3. $ (“article:first-of-type”) .css(“background-color”, “#f2f2f2”);

  4. $ (“section:first-of-type”).css(“background-color”, “#f2f2f2”);

 

Correct Answer: C

 

 

QUESTION 88

You are creating a custom object as described by the following code.

 

70-480-demo-188

 

You need to implement the calcArea method. Which code should you use?

 

  1.  

70-480-demo-189

 

  1.  

70-480-demo-190

 

  1.  

70-480-demo-191

 

  1.  

70-480-demo-192

 

Correct Answer: D

 

 

 

QUESTION 89

DRAG DROP

You are developing a web page that includes the following HTML.

 

70-480-demo-193

 

You need to ensure that the email element is enabled only if the user selects the IT Support check box. Which CSS selectors should you use?

 

To answer, drag the appropriate selector to the correct location. Each selector may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

 

Select and Place:

70-480-demo-194

 

Correct Answer:

70-480-demo-195

 

 

QUESTION 90

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?

 

  1. Rating (Between 1 and 10):

<input type=”number” name=”rating” min =”1″ max=”10″>

  1. Rating (Between 1 and 10):

<input type=”number” name=”rating” min=”1″ max=”10″ default=”5″>

  1. Rating (Between 1 and 10):

<input type=”range” name=”rating” min=”0″ max=”10″ default”=”5″>

  1. Rating (Between 1 and 10):

<input type=”range” name=”rating” min=”10″ max=”10″ value=”5″>

 

Correct Answer: A

 

Instant Access to Download Latest Complete Collection of Microsoft MCSD 70-480 Real Exam

Try Microsoft MCSD 70-480 Free Demo

Comments are closed.