PrepAway - Latest Free Exam Questions & Answers

Category: 70-566

Exam 70-566: UPGRADE: Transition your MCPD Windows Developer Skills to MCPD Windows Developer 3.5

Which code segment should you insert at line 03?

You are creating a Windows application by using the .NET Framework 3.5. You create an instance of the BackgroundWorker component named backgroundWorker1 to asynchronously process time-consuming reports in the application. You write the following code segment in the application. (Line numbers are included
for reference only.)

01 private voidbackgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
02 {
03
04 }

You need to write a code segment that reports to the application when the background process detects any of the following actions:

* An exception is thrown.
* The process is cancelled.
* The process is successfully completed.

Which code segment should you insert at line 03?

What should you do?

You are creating a Windows application for graphical image processing by using the .NET Framework 3.5. You create an image processing function and a delegate. You plan to invoke the image processing function by using the delegate. You need to ensure that the calling thread meets the following requirements:

* It is not blocked when the delegate is running.
* It is notified when the delegate is complete.

What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application processes a large number of records. The records are processed on a separate thread. Occasionally, the record processing takes a long time. You add a Cancel button to the form. You also add an AutoResetEvent object on the user
interface thread, and set the default value of the object to false. You plan to perform the following steps in sequence:

* After every record is processed, read the value of the AutoResetEvent object by using the AutoResetEvent.WaitOne method.
* When the value of the AutoResetEvent object is True, discontinue the record processing.

You need to modify the Click event handler of the Cancel button to change the value of the AutoResetEvent object. What should you do?

Which code segment should you use?

You are creating a Windows Forms application that has the print functionality by using the .NET Framework 3.5. You implement the PrintPage page event for the form. You associate an instance of the PrintDocument control along with an instance of the PrintPreviewDialog control named prevDialog1. You want to set the
default size of the PrintPreviewDialog class to full screen. You need to provide a print preview for the user by adding a code segment to the Click event of the button on the form. Which code segment should you use?

What should you do?

You create Windows Forms applications by using the .NET Framework 3.5. You plan to use the Windows Installer to deploy a new application. The application must meet the following requirements:

* Support deployment to 32-bit and 64-bit operating systems.
* Use the 64-bit Program Files folder when deployed to 64-bit platforms.

You need to ensure that the application is deployed appropriately.What should you do?

What should you do?

You create Windows Forms applications by using the .NET Framework 3.5. You plan to deploy a new application. You need to ensure that on deployment, the application meets the following requirements:

* It is executed on the client computer.
* It is removed from the client computer after the application is closed.
* It is not displayed in the Add/Remove programs panel on the client computer.

What should you do?


Page 7 of 9« First...56789