Latest MCSD 70-481 Dumps Real Exam Download 31-40

Ensurepass

QUESTION  31

You are developing a Windows Store app. You need to ensure that a file that is launched by the app is handled when the app is activated. Which code segment should you use?

(To answer, select the correct option from the drop-down list in the answer area.)

Hot Area:

clip_image002

Correct Answer:

clip_image004

 

 

QUESTION  32

You are developing a Windows Store app by using HTML5 and JavaScript. The app will support both the English and French languages. The app must meet the following requirements:

· Automatically load language-specific string resources from a resource file, and access the resources from within the HTML by using data-win res attributes.

· Use the base.js file from the Windows Library for JavaScript.

You need to ensure that the correct language-specific resources are used. What should you do?

 

A. Specify both the element properties and the resource names of data-win-res attributes, and process the data-win-res attributes in the onactivated event.

B. Specify only the properties of data-win-res attributes, and process the data-win-res attributes prior to the DOMContentLoaded event.

C. Specify both the element properties and the resource names of data-win-res attributes, and process the data-win-res attributes immediately after the DOMContentLoaded event.

D. Specify only the resource names of data-win-res attributes, and process the data-win-res attributes in the onactivated event.

 

Correct Answer: C

 

 

QUESTION  33

You are developing a Windows Store weather app. You need to restore the state of the app while the app is being reactivated. Which code segments should you use?

(To answer, drag the appropriate code segments to the correct locations in the answer area. Each code segment 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:

clip_image006

Correct Answer:

clip_image008

 

 

QUESTION  34

You are developing a Windows Store app that will be used to display daily high temperatures and other weather conditions for five cities. The app must meet the following requirements:

· A splash screen is displayed on the device until the data is retrieved from the Internet.

· The user must be able to view weather information as soon as the data is fully available.

You need to ensure that the splash screen is displayed at startup until the app has completed loading updated data.

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

 

A. Configure settings in the app manifest to display the splash screen until the data is fully available.

B. Create an image that duplicates the splash screen, load the image from the dismissed event of the splash screen, and display the image until the data is fully available.

C. Create an image that duplicates the splash screen, and display the image by using fragment loading until the data is fully available.

D. Configure settings in the app manifest to display the splash screen for 10 seconds.

 

Correct Answer: CD

 

 

QUESTION  35

You are developing a Windows Store app. The app includes the following HTML markup:

clip_image010

You are creating a Flexible Box layout for the application. The layout must be configured as shown in the following display.

clip_image012

The Flexible Box layout must conform to the following requirements:

· The Child2 DIV element must appear on the right side of the layout.

· The Child1 DIV element must appear immediately to the left of Child2.

You need to add CSS to ensure that the requirements are met. Which CSS segment should you add to the style sheet?

 

A.   clip_image014

B.clip_image016

C.  clip_image018

D.clip_image020

 

Correct Answer: D

 

 

QUESTION  36

You are developing a Windows Store app. Users must be able to initiate searches by using the Search charm. The app must display the search text in a DIV element named statusMessage. You need to add code to meet this requirement. Which code segment should you add?

 

A.   clip_image022

B.   clip_image024

C.  clip_image026

D.  clip_image028

 

Correct Answer: B

 

 

QUESTION  37

You are developing a Windows Store app. The app includes a handler for the datarequested event. A portion of the code for the event handler is shown in the following code segment:

clip_image030

The app must meet the following requirements:

· The app must share an order tracking link with target apps.

· The app must share URI-type data only.

You need to ensure that the app meets the requirements. Which code segment should you insert at line 05?

 

A. e.request.data.setData(url);

B. e.request.data.setText(url);

C. var link = new Windows.Foundation.Uri(url); e.request.data.setUri(link);

D. var link = new Windows.Foundation.Uri(url); e.request.setLink(link);

 

Correct Answer: C

 

 

QUESTION  38

You are developing a Windows Store app. The app allows users to browse contacts from a social networking site. The app has the following requirements:

· The user must be able to select more than one contact at a time.

· The app must display all of the details for the selected contacts. You need to ensure that the requirements are met.

Which code segments should you use?

(To answer, select the correct option from each drop-down list in the answer area.)

Hot Area:

clip_image032

Correct Answer:

clip_image034

 

QUESTION  39

You are developing a Windows Store app. You need to allow the app to share content with other applications. Which three actions should you perform in sequence?

(To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)

Build List and Reorder:

clip_image036

Correct Answer:

clip_image038

 

 

QUESTION  40

You are developing a Windows Store text editor app by using HTML5 and JavaScript. Users must be able to select text within the app and then copy the text.

You need to enable the copy feature. Which code segments should you use? (Each correct answer presents part of the solution. Choose all that apply.)

 

A.   clip_image040

B.clip_image042

C.  clip_image044

D.  clip_image046

E.   clip_image048

F.clip_image050

 

Correct Answer: BE

 

 

Download Latest MCSD 70-481 Real Free Tests , help you to pass exam 100%.