Microsoft
70-355 · Question #17
70-355 Question #17: Real Exam Question with Answer & Explanation
The solution involves dragging code elements into blanks in a C# code snippet to complete it correctly. The final completed code, with blanks filled in from the 'Code Elements' list (as indicated by green boxes in the solution), is: ``csharp private async void StartRecognizing_Cl
Question
You are developing a Universal Windows Platform (UWP) app. You need to ensure that the app supports speech functionality. 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 dragging code elements into blanks in a C# code snippet to complete it correctly. The final completed code, with blanks filled in from the 'Code Elements' list (as indicated by green boxes in the solution), is:
private async void StartRecognizing_Click(object sender, RoutedEventArgs e) {
var sr = new SpeechRecognizer();
await sr.RecognizeAsync();
SpeechRecognitionResult output = await sr.RecognizeAsync();
var messageDialog = new MessageDialog(output.Text, "Test spoken");
await messageDialog.ShowAsync();
}
The elements from the 'Code Elements' list (await, new, SpeechRecognitionResult, SpeechRecognizer) are used to fill the highlighted blanks.
Community Discussion
No community discussion yet for this question.