Microsoft 70-357 Exam Practice Questions (P. 3)
- Full Access (65 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You are developing a Universal Windows Platform (UWP) app.
Your app stores files on a users device.
You need to be able to replace the existing files with new files generated by the user.
Solution: You run the StorageFile.GetParentAsync method to get a reference to the existing file. Then, you run the StorageFile.CreateStreamedFileAsync method to create the new file at the same location.
Does this meet the goal?
You are developing a Universal Windows Platform (UWP) app.
Your app stores files on a users device.
You need to be able to replace the existing files with new files generated by the user.
Solution: You run the StorageFile.GetParentAsync method to get a reference to the existing file. Then, you run the StorageFile.CreateStreamedFileAsync method to create the new file at the same location.
Does this meet the goal?
- AYes
- BNo
Correct Answer:
Explanation
The GetParentAsync() method gets the parent folder of the current file.
The CreateStreamedFileAsync method can be used to create a StorageFile that can be passed to other methods or passed to another app through app contracts.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.storage.storagefile
Explanation
The GetParentAsync() method gets the parent folder of the current file.
The CreateStreamedFileAsync method can be used to create a StorageFile that can be passed to other methods or passed to another app through app contracts.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.storage.storagefile
send
light_mode
delete
Question #12
HOTSPOT -
You have an app that includes the following method:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

You have an app that includes the following method:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

Correct Answer:
Box 1: No -
When neither DesiredAccuracyInMeters nor DesiredAccuracy are set, your app will use an accuracy setting of 500 meters (which corresponds to the
DesiredAccuracy setting of Default). Setting DesiredAccuracy to Default or High indirectly sets DesiredAccuracyInMeters to 500 or 10 meters, respectively.
Box 2: No -
The Default value should be used to optimize for power, performance, and other cost considerations.
The High value should be used to deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth. An accuracy level of High may degrade system performance and should be used only when necessary.
Reference:
https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geolocator https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.positionaccuracy

Box 1: No -
When neither DesiredAccuracyInMeters nor DesiredAccuracy are set, your app will use an accuracy setting of 500 meters (which corresponds to the
DesiredAccuracy setting of Default). Setting DesiredAccuracy to Default or High indirectly sets DesiredAccuracyInMeters to 500 or 10 meters, respectively.
Box 2: No -
The Default value should be used to optimize for power, performance, and other cost considerations.
The High value should be used to deliver the most accurate report possible. This includes using services that might charge money, or consuming higher levels of battery power or connection bandwidth. An accuracy level of High may degrade system performance and should be used only when necessary.
Reference:
https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geolocator https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.positionaccuracy
send
light_mode
delete
Question #13
DRAG DROP -
You are creating a Universal Windows Platform (UWP) app that takes pictures.
You want to use the cameras built-in interface for taking the pictures.
You need to capture an image from the devices built-in camera.
How should you complete the method? To answer, drag the appropriate code segments to the correct location or locations. Each code segments 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:

You are creating a Universal Windows Platform (UWP) app that takes pictures.
You want to use the cameras built-in interface for taking the pictures.
You need to capture an image from the devices built-in camera.
How should you complete the method? To answer, drag the appropriate code segments to the correct location or locations. Each code segments 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:

Correct Answer:
Box 1: CameraCaptureUI -
Box 2: CameraCaptureUI -
Example: Using Windows.Media.Capture.CameraCaptureUI API to capture a photo
CameraCaptureUI dialog = new CameraCaptureUI();
Size aspectRatio = new Size(16, 9);
dialog.PhotoSettings.CroppedAspectRatio = aspectRatio;
StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.media.capture.cameracaptureui

Box 1: CameraCaptureUI -
Box 2: CameraCaptureUI -
Example: Using Windows.Media.Capture.CameraCaptureUI API to capture a photo
CameraCaptureUI dialog = new CameraCaptureUI();
Size aspectRatio = new Size(16, 9);
dialog.PhotoSettings.CroppedAspectRatio = aspectRatio;
StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.media.capture.cameracaptureui
send
light_mode
delete
Question #14
HOTSPOT -
You are developing an app that displays photos.
You need to create a method that displays informational text when a user hovers the pointer over a photo.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:

You are developing an app that displays photos.
You need to create a method that displays informational text when a user hovers the pointer over a photo.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:

Correct Answer:
Box 1: DependencyObject -
Box 2: String -
Box 3: ToolTip -
Box 4: ToolTip -
Box 5: ToolTipService -
A ToolTip must be assigned to another UI element that is its owner. In Extensible Application Markup Language (XAML), use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. In code, use the ToolTipService.SetToolTip method to assign the ToolTip to an owner.
The SetToolTip(DependencyObject, Object) method sets the value of the ToolTipService.ToolTip XAML attached property.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.tooltipservice#Windows_UI_Xaml_Controls_ToolTipService_ToolTipProperty

Box 1: DependencyObject -
Box 2: String -
Box 3: ToolTip -
Box 4: ToolTip -
Box 5: ToolTipService -
A ToolTip must be assigned to another UI element that is its owner. In Extensible Application Markup Language (XAML), use the ToolTipService.Tooltip attached property to assign the ToolTip to an owner. In code, use the ToolTipService.SetToolTip method to assign the ToolTip to an owner.
The SetToolTip(DependencyObject, Object) method sets the value of the ToolTipService.ToolTip XAML attached property.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.tooltipservice#Windows_UI_Xaml_Controls_ToolTipService_ToolTipProperty
send
light_mode
delete
Question #15
You are developing a Universal Windows Platform (UWP) app.
You need to provide a solution that moves the scroll bars of the ScrollViewer when a user rotates the mouse wheel.
Which two actions should you perform? Each correct answer presents part of the solution.
You need to provide a solution that moves the scroll bars of the ScrollViewer when a user rotates the mouse wheel.
Which two actions should you perform? Each correct answer presents part of the solution.
- AEvaluate the CurrentPoint.Properties.MouseWheelDelta property of the PointerEvenArgs object. Call the ChangeView() method of the ScrollViewer.
- BUpdate the XAML of the ScrollViewer to include the PointerWheelChanged event with a new event handler. Evaluate the Pointer.IsInRange property of the PointerRoutedEventArgs object within the event handler. Call the ChangeView() method of the ScrollViewer.
- CAdd an event handler to the PointerRoutedAway event for the current window.
- DEvaluate the CurrentPoint.Properties.IsHorizontalMouseWheel property of the PointerEventArgs object. Call the ChangeView() method of the ScrollViewer.
- EAdd an event handler to the PointerWheelChanged event for the current window. CD
Correct Answer:
Explanation
The PointerRoutedAway event occurs on the process receiving input when the pointer input is routed to another process.
Reference:
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollviewer https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.corewindow#Windows_UI_Core_CoreWindow_PointerWheelChanged
Explanation
The PointerRoutedAway event occurs on the process receiving input when the pointer input is routed to another process.
Reference:
https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.scrollviewer https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.corewindow#Windows_UI_Core_CoreWindow_PointerWheelChanged
send
light_mode
delete
All Pages