Ensurepass


QUESTION 11

You are developing a Windows Store app by using JavaScript. The app will allow users to customize various features. The customizations will be persisted by using the setAppSetting function.

You need to persist the customizations. Which code segment should you use?

clip_image001

A. A

B. B

C. C

D. D

Correct Answer: B


QUESTION 12

You are developing two Windows Store style apps by using JavaScript. A Source app will store sensitive customer information. A Target app will retrieve the stored information for validation and further processing. The Source app must secure data by using a private-public key pair. Only the Target app must be able to consume data that has been secured by the Source app.

You need to ensure that the security of the data is not compromised. What should you do?

A. Encrypt and decrypt data by using an asymmetric algorithm.

B. Encrypt and decrypt data by using a symmetric algorithm.

C. Encrypt data by using an asymmetric algorithm. Decrypt data by using a symmetric algorithm.

D. Encode data to and decode data from a Base64 string.

Correct Answer: A


QUESTION 13

You are developing a Windows Store app. You configure the app to allow a free trial period.

You need to prompt the user to purchase the full version of the app when the trial period expires.

What should you do?

A. Call the getAppReceiptAsync() method of the Windows.ApplicationModel.Store.CurrentApp object.

B. Call the getProductReceiptAsync() method of the Windows.ApplicationModel.Store.CurrentApp object and provide the app’s product ID as an argument.

C. Call the requestProductPurchaseAsync() method of the Windows.ApplicationModel.Store.CurrentApp object and provide the app’s product ID as an argument.

D. Call the requestAppPurchaseAsync() method of the Windows.ApplicationModel.Store.CurrentApp object.

Correct Answer: B


QUESTION 14

You are developing a Windows Store app by using JavaScript. The app persists a list of stocks in the app’s settings. The stock list is identified by a key of stockList.

The app must allow users to remove their stock lists from the app’s settings. The following function call removes the stockList setting:

deleteAppSetting("stockList") ;

You need to remove only stockList from the settings storage without disrupting other settings. Which code segment should you use?

clip_image002

A. A

B. B

C. C

D. D

Correct Answer: D


QUESTION 15

You are developing a Windows Store app by using JavaScript. The app will allow users to customize various features. The customizations will be persisted by using the saveMySettings function.

You need to persist the customizations. Which code segment should you use?

clip_image003

A. A

B. B

C. C

D. D

Correct Answer: A


QUESTION 16

You are developing a Windows Store app by using JavaScript. The app will be used in multiple geographic locations. The app implements character grouping.

You need to ensure that the app can access only the first character group. Which code segment should you use?

A. var item = new Windows.Globalization.Collation.CharacterGroupings().getAt (1);

B. var item = new Windows.Globalization.Collation.CharacterGroupings().lookup("1");

C. var item = new Windows.Globalization.Collation.CharacterGroupings().first();

D. var item = new Windows.Globalization.Collation.CharacterGrouping().first;

Correct Answer: C


QUESTION 17

You are developing a Windows Store app that uses Windows Push Notification Services (WNS).

The app includes the following code:

clip_image004

The app must poll a notification service once a day and update the app tile with new content. You need to initiate polling.

Which code segment should you insert at line 05?

clip_image005

A. A

B. B

C. C

D. D

Correct Answer: C


QUESTION 18

You are writing a Windows Store app by using JavaScript.

You need to authenticate a cloud server as a source for Windows Push Notification Services (WNS).

What should you do? (Each correct answer presents part of the solution. Choose all that apply.)

A. Create a code-signing certificate.

B. Register the app with the Dashboard.

C. Create the HTTPS authentication request.

D. Obtain the identity values and credentials for the app.

Correct Answer: ABD


QUESTION 19

You need to retrieve and register a DLNA-compatible device. Which code segment should you insert at line PL16?

A. var player = Windows.Media=Devices.AudioDeviceController();

B. var player = Windows.Media.Devices.DLNADeviceController( );

C. var player = Windows-Media,PlayTo.PlayToManager.getForCurrentView(); player.addsventListener("sourcerequested", sourceRequestHandler, false);

D. var player = Windows.Media.PlayTo.PlayToManager.showPlayToUI(); player-addEventListener("sourcerequested", sourceRequestHandler, false);

Correct Answer: C


QUESTION 20

You need to handle the location-detection problem. What should you do?

A. Insert a try statement immediately after line LO05 and a catch block immediately before line LO09.

Handle the exception in the catch block.

B. Insert an else statement immediately before line LO09. In the else statement, display a notification that the device does not support location.

C. At line LO08, change the positionchanged argument to statuschanged.

D. At line LO06, change the Geolocator class to locator.

Correct Answer: B

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

Comments are closed.