Q1. DRAG DROP - (Topic 2)
You add a MediaElement named VideoTour and a button named playToButton to the
properties details page.
You need to ensure that video tours can be played to other devices.
You have the following code: (Line numbers are included for reference only.)
Which elements should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, drag the appropriate elements to the correct targets in the answer area. Each element 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. DRAG DROP - (Topic 9)
You need to develop an app to measure whether a surface is level. The app will be used on devices that have a gyrometer.
You have the following code:
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.)
Answer:
Q3. HOTSPOT - (Topic 9)
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.)
Answer:
Q4. DRAG DROP - (Topic 5)
You need to meet the app caching requirements.
Which caching technique should you use in each scenario? (To answer, drag the appropriate technique to the correct scenario. Each technique 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 9)
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.
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.
Q6. - (Topic 9)
You are developing a Windows Store app named GeoLoc. You have the following code:
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
Answer: A
Q7. DRAG DROP - (Topic 9)
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.)
Answer:
Q8. DRAG DROP - (Topic 9)
You are developing your first Windows Store app and submitting it to the Windows Store.
The app uses a cloud server to send notifications by using Windows Push Notification
Service (WNS).
You need to authenticate the cloud server with WNS.
Which five 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.)
Answer:
Q9. HOTSPOT - (Topic 9)
You are developing a Windows Store app.
You define an app bar named BottomAppBar.
You need to ensure that you can open the app bar programmatically.
You have the following code:
Which code snippets should you insert in Target 1 and Target 2 to complete the code? (To answer, select the correct code snippet from each drop-down list in the answer area.)
Answer:
Q10. - (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