nerdexam
Microsoft

70-518 · Question #244

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the…

The correct answer is B. Modify the Value property of the progress bar in the ProgressChanged event handler of the D. Call the ReportProgress method of the background worker in DoCalculations. See the full explanation below for the reasoning.

Question

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI) that informs the user of the progress of DoCalculations. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AModify the Value property of the progress bar in DoCalculations.
  • BModify the Value property of the progress bar in the ProgressChanged event handler of the
  • CModify the Value property of the progress bar in the RunWorkerCompleted event handler of
  • DCall the ReportProgress method of the background worker in DoCalculations.
  • ECall the ReportProgress method of the background worker in the DoWork event handler of the

How the community answered

(54 responses)
  • A
    4% (2)
  • B
    72% (39)
  • C
    7% (4)
  • E
    17% (9)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice