aiotestking uk

70-491 Exam Questions - Online Test


70-491 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. DRAG DROP - (Topic 9) 

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.) 

Answer:  

Q2. - (Topic 6) 

You need to implement storage for the user preferences. 

Which storage solutions can you use to meet the specification for the app? (Each correct answer presents a complete solution. Choose all that apply.) 

A. TheWindows.Storage.StorageItemType object 

B. TheWindows.Storage.ApplicationData.Current.RoamingSettings object 

C. Windows Azure 

D. The await Windows.Storage.ApplicationData.Current.LocalFolder method 

Answer: A,D 

Explanation: * Scenario: The app will run locally on the user's device. User preferences will be available locally. 

Q3. - (Topic 9) 

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 

Answer: A,E 

Q4. - (Topic 9) 

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. 

Answer: A,D 

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

Q5. - (Topic 7) 

You need to implement the requirements for the playback of media. 

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

A. Add the following line of code at line MC02. 

private void ShowPlayTo() 

Windows.Media.PlayTo.PlayToManager.ShowPlayToUI(); 

B. Add the following line of code at line MC06. 

ptMgr.DefauitSourceSelection = false; 

C. Add the following line of code at line MC10. 

ptMgr.PlayRequested += SourceRequestHandler; 

D. Add the following line of code at line MC05. 

ptMgr.SourceRequested += SourceRequestHandler; 

Answer: B,D 

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

Q6. - (Topic 2) 

You create a mobile service to send push notifications to the app. 

You configure the service and the app to work with Windows Push Notification Services 

(WNS). 

You add the following code to the App.xaml.cs file: 

You need to ensure that the app can access the push notification channel. 

What should you do first? 

A. Add a call to GetChannel in the OnLaunched event handler of the app. 

B. Set the Uri property of pushChannel in the OnActivated event handler of the app. 

C. Set the Uri property of pushChannel in the OnLaunched event handler of the app. 

D. Add a call to GetChannel in the OnActivated event handler of the app. 

Answer:

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

Q7. HOTSPOT - (Topic 9) 

You are developing a Windows Store app. 

You need to encrypt data. 

How should you complete the code segment? (To answer, select the appropriate line of 

code from each drop-down list in the answer area.) 

Answer:  

Q8. DRAG DROP - (Topic 9) 

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: 

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.) 

Answer:  

Q9. HOTSPOT - (Topic 9) 

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: 

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

. When the check box is selected, the check box must display checkedGlyph. 

. If the check box is cleared, the check box must NOT display any glyphs. 

You have the following XAML markup: 

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.) 

Answer:  

Q10. DRAG DROP - (Topic 1) 

3.You need to recommend a solution to share images from the capture photo page. You have the following code. (Line numbers are included for reference only.) 

Which code segments should you recommend inserting at lines 06 and 12? (To answer, drag the appropriate code segments to the correct locations. 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.) 

Answer: