exam questions

Exam 70-357 All Questions

View all questions & answers for the 70-357 exam

Exam 70-357 topic 1 question 30 discussion

Actual exam question from Microsoft's 70-357
Question #: 30
Topic #: 1
[All 70-357 Questions]

DRAG DROP -
You are developing a Universal Windows Platform (UWP) app that needs to run on multiple types of devices.
The app must detect whether a device has a physical camera button.
For devices that have a physical camera button, you need to ensure that the app continues to function.
How should you complete the code? To answer, drag the appropriate code segments to the correct location or 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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Windows.Phone.UI.Input -

Box 2: ApiInformation -

Box 3: IsTypePresent -

Box 4: HardwareButtons -
You could check and see if the backbutton is present to see if it is a mobile device bool isHardwareButtonsAPIPresent =
Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons")
Reference: https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nzcoder
Highly Voted 5 years, 6 months ago
The last one should be the full name of HardwareButtons.
upvoted 9 times
...
Andrej
Most Recent 5 years, 3 months ago
The answer is correct
upvoted 1 times
Andrej
5 years, 3 months ago
I am wrong, @nzcoder is right. There must be full name with namespace.
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...