Microsoft Advanced Windows Store App Development using C# Sample Questions:
1. You need to update the DoWork() method of the background task to meet the requirements.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A) Get the IsCancellationRequested property from the CancellationToken object and return a TaskCompletionSource object.
B) Update the DoWork() method to receive a Progress object.
C) Add the CancellationToken object to the client.GetAsync() method.
D) Confirm that the IsCancellationRequested property of the CancellationToken object is true and exit the task.
E) Update the DoWork() method to receive a CancellationToken object in the arguments of the method.
F) Access the Progress object and report the task's progress to the caller.
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) Set the Uri property of pushChannel in the OnActivated event handler of the app.
B) Add a call to GetChannel in the OnActivated event handler of the app.
C) Add a call to GetChannel in the OnLaunched event handler of the app.
D) Set the Uri property of pushChannel in the OnLaunched event handler of the app.
3. DRAG DROP
You need to implement the photo viewer page to meet the business requirements. You have the following code:
Which code snippets should you include 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.)
4. HOTSPOT
You are developing a Windows Store app.
You configure the app to support AutoPlay when a portable media player is connected to a
Windows 8.1 device.
You need to verify whether the app was initiated from AutoPlay.
What code should you add to the OnActivated event handler? (To answer, select the
appropriate options in the answer area.)

5. HOTSPOT
You are developing a Windows Store app. The app has the following requirements:
- It must allow users to choose contacts by using a ContactPicker class.
- It must continue to be responsive while the ContactPicker class is displayed. You need to ensure that the ContactPicker class is displayed to meet the requirements.
How should you complete the code segment? (To answer, select the appropriate line of code from each drop-down list in the answer area.)
Solutions:
| Question # 1 Answer: C,D,E | Question # 2 Answer: C | Question # 3 Answer: Only visible for members | Question # 4 Answer: Only visible for members | Question # 5 Answer: Only visible for members |
We're so confident of our products that we provide no hassle product exchange.


By Kama

