Q1. What is the best control to use for the top-level navigation? More than one answer choice may achieve this goal. Select the BEST answer.
A. SemanticZoom
B. Pivot
C. SplitView
D. ListView
Answer: B
Explanation:
Tabs and pivots are used for navigating frequently accessed, distinct content categories. Tabs/pivots can be
used for top-level or sub-level navigation, and can be stacked in a top-level/sub-level pattern.
https://msdn.microsoft.com/en-us/library/windows/apps/dn997788.aspx
Q2. HOTSPOT
You have the following code:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
Answer:
Explanation:
Box 1: No
The SuggestedStartLocation gets or sets the initial location where the file open picker looks for files to present to the user. Here is just gets the location.
Box 2: No
FileOpenPicker.PickMultipleFilesAndContinue method shows the file picker so that the user can pick multiple files, deactivating and the app and reactivating it when the operation is complete.
To get asynchcronous execution use the PickMultipleFilesAsync method.
Box 3: Yes
The line filePicker.ViewMode = PickerViewMode.List specifies that a list will be accepted.
https://msdn.microsoft.com/library/windows/apps/br207847
Q3. You are developing a Universal Windows Platform (UWP) app that has the following unit test.
You need to ensure that TestMethod1 appears in the Test Explorer window of Microsoft Visual Studio.
What should you add?
A. [TestCategory(“Enabled”)]before the UnitTest1 declaration
B. [TestProperty(“Enabled”,”True”)]before the TestMethod1 declaration
C. [TestClass]before the UnitTest1 declaration
D. [TestProperty(“AutoStart”,”True”)] before the TestMethod1 declaration
Answer: C
Explanation:
The [TestClass] attribute is required in the Microsoft unit testing framework for managed code for any class that contains unit test methods that you want to run in Test Explorer.
https://msdn.microsoft.com/en-us/library/ms182532.aspx
Q4. DRAG DROP
You are building a Universal Windows Platform (UWP) app.
You need to ensure that users can start the app by using voice command in Cortana.
Which four 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.
Select and Place:
Answer:
Explanation:
These are the basic steps to add voice-command functionality and integrate Cortana with your app using
speech or keyboard input:
1. Create a VCD file. This is an XML document that defines all the spoken commands that the user can say to initiate actions or invoke commands when activating your app.
2. Register the command sets in the VCD file when the app is launched.
3. Handle the activation-by-voice-command, navigation within the app, and execution of the command.
Box 1: Create a VCD file. This is an XML document that defines all the spoken commands that the user can
say to initiate actions or invoke commands when activating your app.
Box 2: Register the command sets in the VCD file when the app is launched.
Here’s an example that shows how to install the commands specified by a VCD file (vcd.xml).
C#
var storageFile =
await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(
new Uri(“ms-appx:///AdventureWorksCommands.xml”));
await
Windows.ApplicationModel.VoiceCommands.VoiceCommandDefinitionManager.
InstallCommandDefinitionsFromStorageFileAsync(storageFile);
Box 3:
Once your app has been launched and the voice command sets installed, specify how your app responds to subsequent voice command activations.Example:
protected override void OnActivated(IActivatedEventArgs e)
{
// Was the app activated by a voice command?
if (e.Kind != Windows.ApplicationModel.Activation.ActivationKind.VoiceCommand)
{
return;
}
Etc.
https://msdn.microsoft.com/en-us/library/windows/apps/mt185609.aspx
Q5. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store. You need to ensure that the app can access removable storage drives.
Which file should you modify?
A. Package.appxmanifest
B. Project.json
C. Project.csproj
D. App.xaml.cs
Answer: A
Explanation:
The removableStorage capability provides programmatic access to files on removable storage, like USB keys and external hard drives, filtered to the file-type associations declared in the package manifest
Package.appxmanifest.Note: Capabilities must be declared in your Universal Windows Platform (UWP) app’s package manifest,
Package.appxmanifest, to access certain API or resources like pictures, music, or devices like the camera, the microphone, or removable storage devices.
The package manifest, Package.appxmanifest, is an XML document that contains the info the system needs to deploy, display, or update a Windows app.
https://msdn.microsoft.com/en-us/library/windows/apps/mt270968.aspx
Q6. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
You have the following XAML code.
You need to localize the app so that it displays “Bonjour” if the current language in Windows is set to French.
Which four 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.
Select and Place:
Answer:
Explanation:
Box 1, Box 2:
The localized Resources.resw files should be put into subfolders of a folder named Strings.
Box 3:
The Resources.resw files contain localized text.
Box 4:
In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’ A “.resx” file is a special kind of embedded resource.
https://msdn.microsoft.com/library/aa992030(v=vs.100).aspx
Q7. HOTSPOT
You have the following code:
event1 += new PointerEventHandler(Target_PointerPressed);
event2 += new PointerEventHandler(Target_PointerWheelChange);
event3 += new PointerEventHandler(Target_PointerReleased);
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
Answer:
Explanation:
*PointerPressed occurs when a single finger touches the screen.
*PointerWheelChanged occurs when the delta value of a mouse wheel changes.
*PointerReleased occurs when that same touch contact is lifted.
ThePointerReleased eventoccurs when the pointer device that previously initiated a Press action is released, while within this element. Note that the end of a Press action is not guaranteed to fire a PointerReleased event; other events may fire instead.
Q8. You are developing a Universal Windows Platform (UWP) app that will be published to the Microsoft Store.
You need to change the name of the app that will be displayed in the Store.
Which file should you modify?
A. App.xaml.cs
B. Package.appxmanifest
C. AssemblyInfo.cs
D. Project.json
Answer: B
Explanation:
The removableStorage capability provides programmatic access to files on removable storage, like USB keys and external hard drives, filtered to the file-type associations declared in the package manifest
Package.appxmanifest.
Note: Capabilities must be declared in your Universal Windows Platform (UWP) app’s package manifest,
Package.appxmanifest, to access certain API or resources like pictures, music, or devices like the camera, the microphone, or removable storage devices.
The package manifest, Package.appxmanifest, is an XML document that contains the info the system needs to deploy, display, or update a Windows app.
https://msdn.microsoft.com/en-us/library/windows/apps/mt270968.aspx
Q9. DRAG DROP
You are developing a Universal Windows Platform (UWP) app that will take photos. The app will be used
across Windows 10 device families.
You need to ensure that when the app runs on a phone, the app can use the built-in features of the phone.
How should you complete the code? To answer, drag the appropriate code elements to the correct targets.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.
Select and Place:
Answer:
Explanation:
Box 1, box 2:
Example code:
Windows.Foundation.Metadata.ApiInformation.IsTypePresent(“Windows.Phone.UI.Input.HardwareButtons”);
if (isHardwareButtonsAPIPresent)
{
Windows.Phone.UI.Input.HardwareButtons.CameraPressed +=
HardwareButtons_CameraPressed;
}
Box 3:
Example: Making the Back button appear requires just one line of code:
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility =
AppViewBackButtonVisibility.Visible;
https://msdn.microsoft.com/en-us/library/windows/apps/dn894631.aspx
Q10. DRAG DROP
You are developing a Universal Windows Platform (UWP) app. You have the following XAML markup:
You need to develop the code for Button_Click that displays the date that the user entered by using the
selected culture.
You write the following code.
Which code should you insert at line 03? Develop the solution by selecting and arranging the required code
blocks in the correct order.
NOTE: You will not need all of the code segments.
Select and Place:
Answer: