Achieve New Updated (September) Microsoft 70-491 Examination Questions 21-30

Ensurepass

QUESTION 21

HOTSPOT

You are developing a Windows Store app that detects and displays users’ geographic location details.

 

During the unit testing of the app, the location details are not displayed.

 

You need to ensure that the user’s location data is displayed.

 

Which tab in Visual Studio should you use to reconfigure the app to display the location data?

 

To answer, select the appropriate object in the answer area.

 

clip_image002

 

Correct Answer:

clip_image004

 

 

QUESTION 22

HOTSPOT

You plan to develop several Windows Store apps.

 

You plan to use a CheckBox control in all of the apps. The CheckBox control will use a custom visual display.

 

You create XAML markup to customize the control. The code contains all of the necessary visual components for the control, including elements named checkedGlyph and indeterminateGlyph.

 

You need to ensure that the check box meets the following requirements:

 

clip_image006If a value for the check box was NOT set, the check box must display indeterminateGlyph.

clip_image006[1]When the check box is selected, the check box must display checkedGlyph.

clip_image006[2]If the check box is cleared, the check box must NOT display any glyphs.

 

You have the following XAML markup:

 

clip_image007

 

Which code snippets should you insert in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6 to complete the XAML markup?

 

To answer, select the correct code snippet from each drop-down list in the answer area.

 

clip_image008

 

Correct Answer:

clip_image009

 

 

QUESTION 23

DRAG DROP

You are developing a Windows Store app.

 

You need to create and run unit tests for the app.

 

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.

 

clip_image011

 

Correct Answer:

clip_image013

 

 

QUESTION 24

DRAG DROP

You are developing a Windows Store social media app. The app communicates with the server by using a secure web service.

 

You need to ensure that users can securely store and retrieve web service credentials.

 

You have the following code:

 

clip_image014

Which code snippets should you insert in target 1 and target 2 to complete the code?

 

To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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_image016

 

Correct Answer:

clip_image018

 

 

 

QUESTION 25

DRAG DROP

You are developing an augmented reality app.

 

You need to retrieve the direction to which the device points.

 

You have the following code:

 

clip_image019

 

Which code snippets should you include in Target 1, Target 2 and Target 3 to complete the code?

 

To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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_image021

 

Correct Answer:

clip_image023

 

 

QUESTION 26

DRAG DROP

You are developing a Windows Store app.

 

The app consumes data from a business layer.

 

You need to develop a unit test.

 

The test method must ensure that the collection of person objects returned by the business layer meets the following requirements:

 

clip_image006[3]Always contains elements

clip_image006[4]Orders elements consistently between calls

 

You have the following code:

 

clip_image024

 

Which code snippets should you include in Target 1, Target 2, Target 3 and Target 4 to complete the code?

 

To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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_image025

 

Correct Answer:

clip_image026

 

 

QUESTION 27

DRAG DROP

You are developing a Windows Store social media app. The app communicates with the server by using a secure web service.

 

You need to ensure that users can securely store and retrieve web service credentials.

 

You have the following code:

 

clip_image014[1]

 

Which code snippets should you insert in target 1 and target 2 to complete the code?

 

To answer, drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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_image027

 

Correct Answer:

clip_image028

QUESTION 28

You are developing a Windows Store app that accesses a USB Human Interface Device (HID). The app has a default page and a settings page.

 

You need to ensure that when a user connects the USB device, the app starts automatically and opens the settings page.

 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

 

A.

Override the OnLaunched method in the Application class and use the ApplicationViewEventArgs interface.

B.

Add a File Type Associations declaration to the app manifest.

C.

Add a Removable Storage capability to the app manifest.

D.

Override the OnActivated method in the Application class and use the ActivatedEventArgs interface.

E.

Add an AutoPlay Device declaration to the app manifest.

 

Correct Answer: AD

Explanation:

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.application.aspx

 

 

QUESTION 29

You are developing a Windows Store app.

 

The app contains a page named MainPage. The page contains a media element named videoPlayer.

 

You need to provide users with the ability to play the contents of videoPlayer on different devices by using the Devices charm.

 

Which two code segments should you add to the OnNavigateTo event handler on MainPage? (Each correct answer presents part of the solution. Choose two.)

 

clip_image030

 

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

 

Correct Answer: BD

Explanation:

http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.playto.playtosource.aspx

http://msdn.microsoft.com/en-us/library/windows/apps/windows.media.playto.playtosourceselectedeventargs.aspx

 

 

QUESTION 30

You are developing a Windows Store app that will provide users with the ability to subscribe to content by using in-app purchases.

 

You need to test the in-app purchase functionality of the app before you deploy the app to the Windows Store.

 

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

 

A.

Modify the Package.appxmanifest file.

B.

Use the CurrentAppSimulator class.

C.

Modify the App.xaml file.

D.

Modify the Windowsstoreproxy.xml file.

E.

Use the CurrentApp class.

Correct Answer: BE

 

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…