Microsoft
70-511 · Question #18
70-511 Question #18: Real Exam Question with Answer & Explanation
Sign in or unlock 70-511 to reveal the answer and full explanation for question #18. The question stem and answer options stay visible for context.
Question
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You want to add an audio player that plays .wav or .mp3 files when the user clicks a button. You plan to store the name of the file to a variable named SoundFilePath. You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. What should you do?
Options
- AWrite the following code segment in the button onclick event.
- BWrite the following code segment in the button onclick event.
- CUse the following code segment from the PlaySound() Win32 API function and call the
- DReference the Microsoft.DirectX Dynamic Link Libraries.
Unlock 70-511 to see the answer
You've previewed enough free 70-511 questions. Unlock 70-511 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.