Examcollection 70-357 Questions are updated and all 70-357 answers are verified by experts. Once you have completely prepared with our 70-357 exam prep kits you will be ready for the real 70-357 exam without a problem. We have Renovate Microsoft 70-357 dumps study guide. PASSED 70-357 First attempt! Here What I Did.
Q11. DRAG DROP
On the details page, you render the picture of the computer inside an object of the Rectangle type.
You need to implement the ability to rotate the rectangle that contains the picture.
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: Get the Rectangle and its RenderTransform matrix:
Rectangle rectToMove = e.OriginalSource as Rectangle;
Matrix rectsMatrix = ((MatrixTransform)rectToMove.RenderTransform).Matrix;
Box 3, box 4, box 5: Rotate the Rectangle:
rectsMatrix.RotateAt(e.DeltaManipulation.Rotation,
e.ManipulationOrigin.X,
e.ManipulationOrigin.Y);
https://msdn.microsoft.com/library/ee649090(v=vs.100).aspx
Q12. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
You need to ensure that the app can respond to speech.
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:
Similar example:
private async void StartRecognizing_Click(object sender, RoutedEventArgs e)
{
// Create an instance of SpeechRecognizer.
var speechRecognizer = new Windows.Media.SpeechRecognition.SpeechRecognizer();
// Compile the dictation grammar by default.
await speechRecognizer.CompileConstraintsAsync();
// Start recognition.
Windows.Media.SpeechRecognition.SpeechRecognitionResult speechRecognitionResult = await
speechRecognizer.RecognizeWithUIAsync();
// Do something with the recognition result.
var messageDialog = new Windows.UI.Popups.MessageDialog(speechRecognitionResult.Text, “Text spoken”);
await messageDialog.ShowAsync();
}
https://msdn.microsoft.com/en-us/library/windows/apps/mt185615.aspx
Q13. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
You need to ensure that the app can respond to speech.
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:
Q14. 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
Q15. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
You need to ensure that the app can respond to speech.
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:
Similar example:
private async void StartRecognizing_Click(object sender, RoutedEventArgs e)
{
// Create an instance of SpeechRecognizer.
var speechRecognizer = new Windows.Media.SpeechRecognition.SpeechRecognizer();
// Compile the dictation grammar by default.
await speechRecognizer.CompileConstraintsAsync();
// Start recognition.
Windows.Media.SpeechRecognition.SpeechRecognitionResult speechRecognitionResult = await
speechRecognizer.RecognizeWithUIAsync();
// Do something with the recognition result.
var messageDialog = new Windows.UI.Popups.MessageDialog(speechRecognitionResult.Text, “Text spoken”);
await messageDialog.ShowAsync();
}
https://msdn.microsoft.com/en-us/library/windows/apps/mt185615.aspx
Q16. DRAG DROP
You are developing a Universal Windows Platform (UWP) app.
While testing the app, you discover performance issues.You need to profile the performance of the app as the app runs.
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.
Select and Place:
Answer:
Explanation:
Visual Studio diagnostic tools help you analyze the performance of your programs .Click Debug / Start
Diagnostic Tools Without Debugging. Change the target to your project, and then select which Tool you want to run, such as Code Analysis.
https://msdn.microsoft.com/en-us/library/dn957936.aspx
Q17. 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
Q18. You are developing a Universal Windows Platform (UWP) app.
You plan to publish the app to the Microsoft Store. The app will have a 30-day trial mode.
During the trial mode, you need to limit the number of exposed features.
Which object should you use to ascertain whether the app is running in trial mode?
A. CurrentApp
B. ListingInformation
C. Current
D. Application
Answer: B
Explanation:
Exclude or limit features in a trial version by using the current license state of your app, that is stored as
properties of the LicenseInformation class.
https://msdn.microsoft.com/en-us/library/windows/apps/mt219685.aspx
Q19. 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
Q20. 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