You are developing a Windows Store app.
HOTSPOT
You are developing a Windows Store app.
A file named Test.csv contains the following content:
You have a project that contains the following code:
The Test1 function is the only test in the project.
For each of the following statements, select Yes if the statement is true. Otherwise select No. Each
correct selection is worth one point.
You need to use a control to display multiple elements
You develop several Windows Store apps.
You need to use a control to display multiple elements.
The control has the following requirements:
Each item must be displayed as a button.
When a user clicks a button, the button must show that it was clicked.
Developers must be able to bind the control to a collection.
Developers must be able to handle an event when items are selected.
Developers must be able to specify whether the control provides users with the ability to select
either one or multiple items.
What should you use? (More than one answer choice may achieve the goal. Select the BEST answer.)
Which code snippets should you insert in Target 1, Target 2, Target 3, Target 4, Target 5 and Target 6 to comp
HOTSPOT
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.)
Which code snippets should you include in Target 1 and Target 2 to complete the code?
DRAG DROP
You are developing a Windows Store app that allows users to take and edit pictures.
The user interface must remain responsive while the user works with pictures.
You need to ensure that the app allows users to crop captured pictures.
You have the following code: private async void CapturePhoto()
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.)
Which code snippets should you include in Target 1 and Target 2 to complete the code?
DRAG DROP
You are developing a Windows Store app that logs error information to be used for troubleshooting.
You need to create a log that will contain the events to be used by Event Tracing for Windows (ETW).
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.)
Which code snippets should you include in Target 1, Target 2 and Target 3…?
DRAG DROP
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.)
Which code segments should you insert at lines 04, 08 and 10?
DRAG DROP
You are developing a Windows Store app to record audio.
You need to ensure that when an audio recording reaches the maximum permitted length, the app
sends a message to the user indicating that recording has stopped.
You have the following code: (Line numbers are included for reference only.)
Which code segments should you insert at lines 04, 08 and 10? (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.)
Which three actions should you perform in sequence?
DRAG DROP
You are developing a Windows Store app that uploads large files to the Internet by using background
tasks.
uploadTask is an instance of the IBackgroundTask interface that provides access to a background
task instance. UploadFilesAsync() is the asynchronous method that performs the upload.
You need to ensure that the app performs the upload operation asynchronously in a background
task.
Which three 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.)
Which three code segments should you arrange in sequence at lines 03, 04, and 05?
DRAG DROP
You are developing a Windows Store app that writes data to a file.
You have the following requirements:
If a file exists with the same name, it should be overwritten by the new file.
The data must be stored in the app data folder.
The method is defined as follows. (Line numbers are included for reference only.)
You need to complete the method to meet the requirements.
Which three code segments should you arrange in sequence at lines 03, 04, and 05? (To answer,
move the appropriate code segment from the list of code segments to the answer area and arrange
them in the correct order.)
Which code snippets should you insert in Target 1 and Target 2 to complete the code?
HOTSPOT
You are developing a Windows Store app.
The app must receive push notifications from a calling app by using Windows Push Notification
Service (WNS).
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.)