QUESTION 141

You develop an HTML5 webpage that contains the following HTML markup:

 

clip_image002

 

You have the following requirements:

 

clip_image004Retrieve the content for any OPTION elements when the value of the selected attribute equals selected.

clip_image004[1]Add the content to a comma separated string.

 

You need to retrieve the required data.

 

Which two code segments should you add to the webpage? (Each correct answer presents a complete solution. Choose two.)

 

clip_image006

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

 

Correct Answer: BD

Explanation:

Note:

* select option:selected

selected Selector

Description: Selects all elements that are selected.

 

 

QUESTION 142

DRAG DROP

You are creating a function by using JavaScript.

 

You have the following requirements:

 

The function must display loan amounts to the user within the following HTML element:

 

<div id=”display”></div>

 

The loan amount of 2100 must display in the HTML element.

 

All declared variables and functions must be scoped to the myApp variable.

 

You need to implement the function.

 

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

 

clip_image008

 

Correct Answer:

clip_image010

 

 

QUESTION 143

HOTSPOT

You create a custom style by using CSS3.

 

A box with rounded corners must appear around text. The box must match the following illustration:

 

clip_image012

 

You need to add the CSS3 markup to your style.

 

How should you complete the relevant CSS styles? (To answer, select the appropriate option from each drop-down list in the answer area.)

 

clip_image014

clip_image016

 

Correct Answer:

clip_image018

 

QUESTION 144

HOTSPOT

You implement a callback function by using JavaScript.

 

You need to process the returned XML data.

 

How should you complete the relevant code? (To answer, select the appropriate option from each drop-down list in the answer area.)

 

clip_image020

 

clip_image022

 

Correct Answer:

clip_image024

 

 

QUESTION 145

You develop an HTML5 application. You give users a numeric ac
cess code that can be used only one time.

 

Users must enter the numeric access code in the login form of the application. The numeric characters must be hidden by a masking character.

 

You need to implement the form element for users to enter the code.

 

Which HTML element should you use?

 

A.

<input type=”password” required autocomplete=”off”>

B.

<input type=”input” autocomplete=”off” required />

C.

<input type=”password” stytem” visiblity:hidden;” required />

D.

<input type=”button” value=”password” required />

 

Correct Answer: A

 

 

 

QUESTION 146

You are developing an HTML5 web application that displays stock information.

 

The application loads information from a web service by using AJAX.

 

The following code defines a Stock object and loads stock data.

 

clip_image026

 

You need to implement the loadStock function.

 

Which code segment should you use?

 

clip_image028

A.

Opti
on A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: A

 

 

QUESTION 147

HOTSPOT

You review a webpage that contains the following markup:

 

clip_image030

 

How does the page render? For each statement in the table, select Yes if the behavior is described. Select No if it is not. Make only one selection in each column.

 

clip_image032

 

Correct Answer:

clip_image034

 

 

QUESTION 148

DRAG DROP

You create an HTML5 application that includes JavaScript. The application performs several AJAX requests. One AJAX request retrieves order information from a web service and then sends the information back to a webpage within the application.

 

You must create a custom event. You have the following requirements:

 

clip_image004[2]The webpage must contain an HTML element named ordersListing that will receive the custom event notification.

clip_image004[3]The event name must be ordersReceived.

clip_image004[4]The event must pass a custom value named orderCount.

clip_image004[5]The event must run a JavaScript method named showOrdersReceivedCount after the orders Listing HTML element receives the event.

clip_image004[6]Do not allow other DOM elements to receive the event.

clip_image004[7]Allow the event to be cancelled.

clip_image004[8]Send the event into the event system.

 

You need to implement the custom event to notify specific DOM elements of the AJAX response.

 

Which three actions should you perform in sequence? (Develop the solution by selecting the required code segments and arranging them in the correct order.)

 

clip_image036

 

Correct Answer:

clip_image038

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

QUESTION 149

DRAG DROP

You are developing an application by using JavaScript.

 

You must write a function that returns the sum of the variables named v1, v2, v3, v4.

 

You need to complete the sum function.

 

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

 

clip_image039

 

Correct Answer:

clip_image040

 

 

 

 

 

 

QUESTION 150

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

 

<span id = “myTextSpan” class = “redText”> Hello There! </span>

 

The font color of text inside the span must be red.

 

You need to develop the web page to meet the requirement.

 

Which two CSS segments will achieve the goal? (Each correct answer presents a complete solution. Choose two.)

 

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: AC

 

Free VCE & PDF File for Microsoft 70-480 Real Exam

Instant Access to Free VCE Files: MCSE|MCSA|MCITP…
Instant Access to Free PDF Files: MCSE|MCSA|MCITP…