Ensurepass


QUESTION 11

You are preparing to deploy a Windows Store app to the marketplace.

You need to ensure that unhandled errors and exceptions are never displayed to users. What should you do?

A. In the app object, wrap the call to the Window.Current.Activate() method in a try-catch statement to handle any exceptions that occur.

B. Open the Exceptions window in Visual Studio and clear the check box for unhandled exceptions for the Common Language Runtime.

C. Write a handler for the UnhandledException event and set the Handled property on the UnhandledExceptionEventArgs object to true.

D. Write a handler for the UnhandledException event and set the CancelBubble property on the UnhandledExceptionEventArgs object to true.

Correct Answer: C


QUESTION 12

You are developing a Windows Store app that allows users to compose musical beats and rhythms.

The app must meet the following requirements:

– The app must save the work in progress in case the app suspends or terminates before users save their work.

– If the app closes before the work is complete, work in progress should be automatically reloaded so that users can continue seamlessly from where they left off.

– Users should be able to resume work on another device with the app installed, provided that the user supplies the same credentials on both machines.

You need to ensure that the app meets the requirements. How should the app save the work in progress?

A. by storing it in a memory-mapped file

B. by serializing it to a temporary app store

C. by serializing it to the roaming app store

D. by serializing it to the local app store

Correct Answer: C


QUESTION 13

You are designing a Windows Store app that creates large amounts of temporary binary data each time it is run.

You need to ensure that data is persisted while the app is running but deleted when the app is closed. Which app data storage mechanism should you use?

(Each correct answer presents a complete solution. Choose all that apply.)

A. a temporary app data store

B. the app files of the local app data store

C. the app settings of the local app data store

D. a roaming app data store

Correct Answer: ABC


QUESTION 14

You are developing a Windows Store app. The app has the following requirements:

– Files must be stored on a device’s file system so other Windows Store apps can access them.

– Additional configuration must be performed to make the location of the files available to other Windows Store apps.

You need to meet the requirements.

Where should you store the files? (Each correct answer presents a complete solution. Choose all that apply.)

A. removable devices

B. app data locations

C. user’s download folder

D. documents library

E. app install directory

Correct Answer: AD


QUESTION 15

You are developing a Windows Store app that displays notifications on the lock screen.

The app must execute a background task when the notification arrives.

In addition, the app must receive push notifications from Windows Push Notification Service (WNS).

You need to use a push notification mechanism that meets the requirements. Which push notification mechanism should you use?

A. Toast notification

B. Raw notification

C. Tile update

D. Badge update

Correct Answer: B


QUESTION 16

You are developing a Windows Store app that prints documents. An object named printManager manages the print flow. An object named printDocument sends output to the printer.

You need to ensure that the app allows the user to preview the print layout of the entire document. Which event should you handle to construct the print preview of the entire document?

A. printDocument.GetPreviewPage

B. printManager.PrintTaskRequested

C. printDocument.Paginate

D. printDocument.AddPages

Correct Answer: C


QUESTION 17

You are developing a Windows Store app that uses the Windows Push Notification Service (WNS) to send toast notifications. You need to ensure that the requests that the app sends to the WNS follow the authorization standard that WNS supports. Which authorization standard should you use?

A. ADFS

B. ws-Trust

C. openID

D. OAuth 2.0

Correct Answer: D


QUESTION 18

You are developing a Windows Store app that requires access to a user’s location.

A user denies the app access to the location service.

You need to handle the error that results when the app calls the GetGeopositionAsync() method. What should you do?

A. Modify the app manifest to enable Location services and query the user.

B. Display an interface for the user to enable location and rerun the method.

C. Catch the exception using a try-catch statement.

D. Modify the app.config file to enable Location services and query the user.

E. Catch the exception using a try-catch async statement.

Correct Answer: C


QUESTION 19

You are developing a Windows store game that allows players to save friend information for other players they meet in the game. The app must meet the following requirements:

– The app must save all friend information when the app suspends or terminates.

– When the app is restarted, friend information should be automatically reloaded.

– Players should be able to view friend information on other devices with the app installed, provided that the user supplies the same credentials on both machines.

You need to ensure that the app meets the requirements. How should the app save the friend information?

A. by saving friend information to a temporary app store

B. by saving friend information to the roaming app store

C. by saving friend information to the local app store

D. by saving friend information in a memory-mapped file

Correct Answer: B


QUESTION 20

You are developing a Windows Store app for geocaching competitions that displays location- aware tips. You need to capture device location events periodically to determine if a tip should be displayed.

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

A. Enable the Proximity capability in the Package.appxmanifest file.

B. Create an instance of the Windows.Devices.Sensors.OrientationSensor class.

Use the Reportlnterval property to set the interval for getting the position data.

Then attach an event handler to the PositionChanged event to capture position and decide if tips should be shown,

C. Create an instance of the Windows.Devices.Sensors.Gps class.

Use the Reportlnterval property to set the interval for getting the position data.

Then attach an event handler to the PositionChanged event to capture position and decide if tips should be shown.

D. Enable the Location capability in the Package.appxmanifest file.

E. Create an instance of the Windows.Devices.Geolocation.Geolocator class, Use the Reportlnterval property to set the interval for getting the position data.

Then attach an event handler to the PositionChanged event to capture position and decideif tips should be shown.

Correct Answer: DE

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

Comments are closed.