Q1. - (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
Q2. - (Topic 9)
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.)
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Answer: B,D
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
Q3. DRAG DROP - (Topic 9)
You are developing an app that converts text to speech.
You need to ensure that the app can read text from open documents.
You have the following code for the reading function of the app. (Line numbers are included
for reference only.)
Which code segments should you insert at lines 03, 05, and 08? (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:
Q4. 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:
Q5. - (Topic 7)
You need to implement the photo viewer control to meet the requirements.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Add the themes\generic.xaml file to the project and reference it from the control.
B. Create a composite control.
C. Create a user control.
D. Create a custom control.
E. In the constructor of the class, set the value of the DefaultStyleKey to the type of the control.
Answer: C,D,E
Q6. - (Topic 9)
You plan to develop a Windows Store app to create pictures.
Users of the app will be able to save the pictures that they create and to share the pictures with friends by using a web link.
You need to ensure that the friends can makes comments on the shared pictures.
Which storage technology should you use? (More than one answer choice may achieve the goal. Select the BEST answer.)
A. Roaming storage
B. Microsoft Azure blob storage
C. Microsoft Azure Mobile Services
D. One Drive
Answer: D
Q7. - (Topic 4)
You need to configure the Picture Sharer app to support only the required device orientations.
What should you do?
A. In the App.xaml file, configure the Portrait and Portrait-flipped orientations.
B. In the Package.appxmanifest file, configure the Snapped and Filled orientations.
C. In the PictureSharerMainPage.xaml file, configure the Landscape and Landscape-flipped orientations.
D. In the App.xaml file, configure the Portrait and Landscape orientations.
E. In the App.manifest file, configure the Portrait and Portrait-flipped orientations.
F. In the Package.appxmanifest file, configure the Landscape and Landscape-flipped orientations.
Answer: F
Q8. - (Topic 9)
You are developing a Windows Store app.
The app will store user names and passwords by using Windows Azure.
You need to recommend a method to store the passwords. The solution must minimize the likelihood that the passwords will be compromised.
Which algorithm should you recommend using?
A. 3DES
B. DES
C. AES
D. SHA512
Answer: D
Reference:
http://apps.microsoft.com/windows/en-us/app/sha-512-encoder/6be865f2-4673-47c6-9354-1865c2ef82fe
Q9. DRAG DROP - (Topic 9)
You are developing a Windows Store app.
You need to ensure that the app meets the following requirements:
. When the app is started, the app bar must appear at the top of the app. . When the app is resized, if the new width of the app is less than 400 pixels, the app bar must be hidden. Users must be able to show the app bar by right-clicking.
. When the app is resized, if the new width is greater than 400 pixels, the app bar must be visible. Users must be able to hide the app bar by right-clicking, pressing Windows + Z, or swiping in from the top edge of the screen.
You have the following XAML markup in a file named MainPage.xaml. (Line numbers are included for reference only.)
You have the following code in a file named MainPage.xaml.es. {Line numbers are included for reference only.)
Which code segments should you insert in MainPage.xaml and MainPage.xaml.cs? (To answer, drag the appropriate code segments to the correct locations in the answer area. 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:
Q10. - (Topic 3)
You place a breakpoint at line MP31 in the app.
When you debug the app, the debugger continuously catches a
System.UnauthorizedAccess exception.
You need to resolve the exception.
What should you do?
A. Wrap lines CE43 through CE46 in a try-catch statement.
B. At line MP10, change the code segment to the following line of code.
read if(cameraUI != null)
C. Move line CE09 to CE16.
D. At line PA25, insert the following line of code. <Capability Name="picturesLibrary"/>
Answer: D
Explanation:
http://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx