nerdexam
Microsoft

70-511 · Question #63

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.) You need to…

The correct answer is B. < MediaElement Source="media\numbers.wmv" Name="myMediaElement". See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.) You need to ensure that a video file begins to play only when a user clicks Play. Which code fragment should you insert at line 06?

Exhibit

70-511 question #63 exhibit

Options

  • A< MediaElement Source="media\ numbers.TJTOV" Name="myMediaElement"
  • B< MediaElement Source="media\numbers.wmv" Name="myMediaElement"
  • C< MediaPlayer Source="media\ numbers, umv" Naitie="myMediaElement"
  • D< MediaPlayer Source="media\numbers.wmv" Name="myMediaElement"

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    82% (23)
  • C
    11% (3)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice