nerdexam
Microsoft

70-355 · Question #22

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app that will be used on desktop computers and phones. The app will use facial recognition. You need to develop a method…

The solution involves completing the code structure as follows: `` private static async Task(DeviceInformation) { var AllVideoDevices = [DeviceInformation].FindAllAsync([DeviceClass.VideoCapture]); } ` From the 'Code Elements' list, DeviceInformation is dragged to the first…

Implement coding patterns

Question

Drag and Drop Question You are developing a Universal Windows Platform (UWP) app that will be used on desktop computers and phones. The app will use facial recognition. You need to develop a method that verifies whether a camera is present. 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.

Explanation

The solution involves completing the code structure as follows:

private static async Task(DeviceInformation)
{
  var AllVideoDevices = [DeviceInformation].FindAllAsync([DeviceClass.VideoCapture]);
}

From the 'Code Elements' list, DeviceInformation is dragged to the first placeholder and DeviceClass.VideoCapture is dragged to the second placeholder. The elements async and await are also part of the overall method signature (async) and the FindAllAsync call (await, implied by the structure). DeviceClass.ImageScanner, HardwareIdentification, and SystemCondition are not used in this specific solution according to the provided answer image.

Topics

#UWP#facial recognition#camera detection#device capabilities

Community Discussion

No community discussion yet for this question.

Full 70-355 Practice