Achieve New Updated (September) Microsoft 70-491 Examination Questions 51-60

Ensurepass

QUESTION 51

You are developing a Windows Store app that allows users to record audio and video files and save them to their devices.

 

You have the following requirements:

 

clip_image002The audio and video files must be shorter than three minutes in duration.

clip_image002[1]The app must finalize recording automatically when the time limit is reached.

clip_image002[2]You cannot use continuous polling to test when the time limit is reached.

 

You need to ensure that the app meets the requirements.

 

What should you do?

 

A.

Handle the RecordLimitationExceeded event.

B.

Assign a handler lo the DefaultAudioCaptureDeviceChanged event.

C.

Handle the AudioTransferRequested event.

D.

Call the StopRecordAsyncO method.

 

Correct Answer: C

 

 

QUESTION 52

You are developing an app that will be used to purchase and share music. Users will be allowed to share only content that they have purchased.

 

You need to display a message within the Share charm when users attempt to share content that they have not purchased.

 

What should you do?

 

A.

Use a toast notification.

B.

Use the SetText() method of the DataPackage object.

C.

Set the LegalInformation property of the DataPackage object.

D.

Use the FailWithDisplayText() method of the DataRequest object.

 

Correct Answer: D

Explanation:

Use the FailWithDisplayText method when your app is unable to supply a DataPackage to a target app. This method cancels the share operation and supplies a text message to the target app. The target app can then display this text to the user to explain why the share operation failed.

 

 

QUESTION 53

You are developing a Windows Store app.

 

You declare a Search declaration in the app manifest and you add a search results page.

 

You plan to display search results by using a Query Text property that derives from EventArgs,

 

You need to ensure that users can use the Search charm to search for content within the app.

 

What should you do?

A.

Add an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs. Register the event handler in the constructor of the page.

B.

Add an event handler for the SearchPane.QueryChanged event to MainPage.xaml.es. Register the event handler in the OnWindowCreated method in MainPage.xaml.es.

C.

Add an event handler for the SearchPane.QuerySubmitted event to MainPage.xaml.es. Register the event handler in the OnWindowCreated method in MainPage.xaml.es.

D.

Add an event handler for the SearchPane.QuerySubmitted event to App.xaml.cs. Register the event handler in the OnWindowCreated method of the page.

 

Correct Answer: D

 

 

QUESTION 54

You are developing a Windows Store app that will provide users with the ability to save annotations to text files.

 

You have the following code segment: (Line numbers are included for reference only.)

 

clip_image003

 

You need to add the contents of data to the beginning of file.

 

Which code segment should you insert at line 03?

 

clip_image004

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

 

Correct Answer: D

 

 

 

 

QUESTION 55

You are developing a Windows Store app.

 

You need to create a service for the app to receive push notifications from Windows Push Notification Services (WNS).

 

Which tool should you use?

 

A.

The Manifest Designer

B.

The Developer Dashboard

C.

The Microsoft Visual Studio XML Editor

D.

The Windows App Certification Kit

 

Correct Answer: A

 

 

QUESTION 56

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

 

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

clip_image002[4]Additional con

figuration 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: AE

Explanation:

http://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx

 

 

QUESTION 57

DRAG DROP

You are developing a Windows Store app that caches user application data in the local data store.

 

The app must create a setting named UserName within a container named UserSettings. The app must store the user name in the local store.

 

You need to meet the requirements.

 

How should you complete the code segment?

 

To answer, drag the appropriate options to the correct location or locations. Each option 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.

clip_image006

 

Correct Answer:

clip_image008

 

 

QUESTION 58

HOTSPOT

You are developing a Windows Store app that allows users to copy music from their local computers to removable storage.

 

The app displays songs grouped by the month the song was downloaded and allows individual songs to be copied to the removable storage device. The user interface for selecting and copying songs uses data binding.

 

You need to load and return songs in a format appropriate for data binding.

 

How should you complete the code segment?

 

To answer, select the appropriate line of code from each drop-down list in the answer area.

 

clip_image010

 

Correct Answer:

clip_image012

QUESTION 59

You are developing a Windows Store app named GeoLoc.

 

You have the following code:

 

clip_image013

 

When you run the app on some devices, you receive the following error message: “An exception of type ‘System.UnauthorizedAccessException’ occurred in mscorlib.dll but was not handled in user code.”

 

You need to resolve the issue that causes the exception to occur.

 

Which file should you modify?

 

A.

Package.appxmanifest

B.

Assemblyinfo.es

C.

App.xaml

D.

Geoloc.csproj

 

Correct Answer: A

Explanation:

http://stackoverflow.com/questions/22753843/an-exception-of-type-system-unauthorizedaccessexception-occurred-in-mscorlib-d

 

 

QUESTION 60

DRAG DROP

You are developing a Windows Store app.

 

The app includes the following event procedure:

 

Void OnSettingsPaneOpened(SettingsPanesettingsPane, SettingsPaneCommandsRequestedEventArgseventArga)

 

You need to call the event procedure when the user opens the settings pane.

 

Which three code segments should you use in sequence?

 

To answer, move the appropriate code segments to the answer area and arrange them in the correct order.

 

clip_image015

 

Correct Answer:

clip_image017

 

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

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