Q1. 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:
Q2. - (Topic 3)
Users report performance issues when getting the location information associated with a photo. You suspect the app is encountering performance issues in the GetLocationAsync() method of the Environment class.
You need to enhance the performance of the GetLocationAsync() method of the app.
What should you do?
A. Remove the Compass initialization from the LoadSensors() method and initialize it within the GetLocationAsync() method.
B. set the ReportInterval property of the Compass object to 16.
C. set the ReportInterval property of the Compass object to 0.
D. Move the locator variable to a class level variable and initialize it in the Environment constructor.
Answer: D
Q3. - (Topic 9)
You are developing a Windows Store multi-player game.
You need to ensure that the game can authenticate users by using the credentials of a third-party social networking site.
Which class should you use?
A. PassportAuthenticationModule
B. WindowsAuthenticationModule
C. WebAuthenticationBroker
D. FormsAuthentication
Answer: C
Explanation: How can you take protocol modeled for the web and make it work in an app that is running on a Windows 8 device? The answer is the WebAuthenticationBroker component in the Windows Runtime.
The web authentication broker is designed to assist you with single sign-on scenarios by emulating a fully web-based experience.
Q4. HOTSPOT - (Topic 9)
You are developing a Windows Store app.
The app receives badge notifications from Windows Push Notification Services (WNS).
You configure the app to establish a communication channel with WNS. You use a variable named pushChannel to store the notification channel object used for communication. You add the following line of code to the app:
Which code snippets should you insert in Target 1, Target 2 and Target 3 to complete the code? (To answer, select the correct code snippet from each drop-down list in the answer area.)
Answer:
Q5. DRAG DROP - (Topic 9)
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:
. Always contains elements
. Orders elements consistently between calls
You have the following code:
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.)
Answer:
Q6. - (Topic 9)
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.)
You need to add the contents of data to the beginning of file. Which code segment should you insert at line 03?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q7. DRAG DROP - (Topic 9)
You are developing a Windows Store app.
The app has the following requirements: . Open the Search charm. . Provide query suggestions by using the GetSuggestions() method-You need to ensure that the app meets the requirements. 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:
Q8. DRAG DROP - (Topic 9)
You are developing a Windows Store app.
You need to identify the effects of applying Microsoft design principles to the user interface.
Which effects result from the design principles? (To answer, drag the appropriate effects to the correct locations in the answer area. Each effect 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. - (Topic 9)
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:
. The audio and video files must be shorter than three minutes in duration.
. The app must finalize recording automatically when the time limit is reached.
. 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.
Answer: C
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: