PrepAway - Latest Free Exam Questions & Answers

Which of the following options should you make use of?

You are employed as an application developer at ABC.com. ABC.com makes use of Microsoft
.NET Framework 4 for Windows Presentation Foundation (WPF) application development.
You are developing an application that makes use of a background worker process (BWP), which
is configured to asynchronously implement a method that carries out calculations. This method is
named Analyze, and is triggered as soon as a button is clicked by an application user.
You then decide to configure the user interface to display a progress bar, which will allow users to
view the completion status of the Analyze method.
Which of the following options should you make use of?

PrepAway - Latest Free Exam Questions & Answers

A.
You should consider having the Value property of the progress bar altered in DoCalculations.
Call the Reportevent method of the background worker in the DoProgress event handler of the
background worker.

B.
You should consider having the Value property of the progress bar altered in the
ProgressChanged event handler of the background worker. You should then consider making use
of the Call the ReportProgress method of the background worker in DoCalculations.

C.
You should consider having the Value property of the progress bar altered in the
RunWorkerCompleted event handler of the background worker. You should then consider making
use of the ReportProgress method of the background worker in the DoWork event handler of the
background worker.

D.
You should consider having the Value property of the progress bar altered in the
ProgressChanged event handler of the background worker. You should then consider making use
of the ReportProgress method of the background worker in the DoWork event handler of the
background worker.

E.
You should consider having the Value property of the progress bar altered in DoCalculations.
You should then consider making use of the ReportProgress method of the background worker in
DoCalculations.

F.
You should consider having the Value property of the progress bar altered in the
RunWorkerCompleted event handler of the background worker. You should then consider making
use of the ReportProgress method of the background worker in DoCalculations.

Explanation:

2 Comments on “Which of the following options should you make use of?


Leave a Reply