Free Download New Updated Microsoft 70-480 Real Exam Questions and Answers 181-190

Ensurepass

QUESTION 181

You troubleshoot a webpage that contains the following HTML markup: (Line numbers are included for reference only.)

 

image405

 

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

 

image407

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: AB

 

 

QUESTION 182

You develop a webpage by using HTML5.

 

The user interface of the webpage must show a gray-lined box that contains the label Enter your information:. Inside the box are two labels and two input boxes. The first input box must be labeled Name:. The second input box must be labeled Email:. Below the box is a Submit button.

 

The user interface must look like the following;

 

image408

 

You need to create the user interface.

 

Which markup should you use?

 

image409

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: B

QUESTION 183

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=”input” required=”required”/>

B.

<input name=email” type=”url” required=”email”/>

C.

<input name=”email” class” email”/>

D.

<input name=”email” type=”email”/>

 

Correct Answer: D

 

 

QUESTION 184

You are developing an application to track project management for your company. The status of the project is stored in a variable named percentComplete.

 

The method must execute only when percentComplete is equal to the numeric value 100.

 

You need to develop the application to meet the requirement.

 

Which code segment should you use?

 

image410

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 185

DRAG DROP

You develop a website for a company by using HTML5.

 

You have the following requirements:

 

image006Allow multiple news postings per page under the title “Welcome to the Semantic Web!”.

image006[1]Search engines must be able to index individual news postings.

image006[2]News postings must be styled by using the following CSS markup:

 

.posting { line-height: 150%; )

 

You need to structure the markup for each individual news posting.

 

How should you complete the relevant markup? (To answer, drag the appropriate markup to the correct location or locations in the answer area. Use only markup that applies.)

 

image411

 

Correct Answer:

image412

 

 

QUESTION 186

You have a webpage that includes the following markup and code:

 

image413

 

You need to troubleshoot the code by clicking the Submit button.

 

Which value will be displayed?

 

A.

10

B.

20

C.

Undefined

D.

Runtime error

 

Correct Answer: A

 

 

QUESTION 187

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

 

<div class=”new” Item”>…</div>

 

You have the following requirements:

 

image006[3]In addition to your CSS, you must use a corporate branded stylesheet named corporate.ess.

image006[4]The corporate.ess file contains the style rule that must be used for .newsItem. You must use the corporate.ess file to ensure that the webpage changes when the brand changes.

image006[5]You must add additional style rules to the webpage.

image006[6]You cannot modify the corporate.ess file.

image006[7]You need to apply the appropriate CSS rules to meet the requirements.

 

What should you do?

 

A.

Add a CSS class named .newsItemUpdates to the webpage, add only the new styles to this class, and update the class attribute of the HTML markup:

<div class=nnewsltem newsItemUpdates”>..,</div>

B.

Update the corporate.ess file to include! important for each rule for the .newsItem. class, and add the new CSS rules to the webpage by using the CSS class .newsItem.

C.

Add a CSS class named .newsitemUpdates to the webpage, add the new styles to this class, and update the HTML markup to replace the .newsItem class with this new class:

<div class*”newsItemOpdates”>…</div>

D.

Add the new CSS rules to the webpage by using the CSS class .newsItem, and add! important to each rule.

 

Correct Answer: D

 

 

QUESTION 188

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

 

Correct Answer: B

 

 

 

 

 

 

QUESTION 189

You are creating a JavaScript object that represents a customer.

 

You need to extend the Customer object by adding the GetCommission method.

 

You need to ensure that all future instances of the Customer object implement the GetCommission method.

 

Which code segment should you use?

 

image415

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

QUESTION 190

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

 

image416

 

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’});

 

Correct Answer: D

 

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

Try Microsoft 70-480 Free Demo