PrepAway - Latest Free Exam Questions & Answers

Category: 70-505

Exam 70-505: TS: Microsoft .NET Framework 3.5, Windows Forms Application Development

What should you do to configure the BackgroundWorker component appropriately to prevent the application?

You are creating a Windows application by using the .NET Framework 3.5.
The Windows application has print functionality. You create an instance of a BackgroundWorker component named backgroundWorker1.
You discover that when the application attempts to cancel the background process, you receive a System.InvalidOperationException exception on the following code segment:

backgroundWorker1.CancelAsync();

You need to configure the BackgroundWorker component appropriately to prevent the application from generating exceptions.
What should you do?

What should you do to ensure that the following requirement?

You create Windows Forms applications by using the .NET Framework 3.5.
You plan to deploy a new application by using the ClickOnce technology.
During deployment, the application performs the following tasks:
* Modifies registry keysModifies the files located in the %PROGRAM FILES% folder Administrative permissions are not granted to users who install the application.
You need to ensure that the following requirements are met:
* The application can be deployed to Windows Vista client computers that are not part of an Active Directory domain.
* When the application is deployed, users are not prompted to elevate their permissions.
What should you do?

What should you do to ensure that the following requirements ?

You are creating a Windows Forms application by using the .NET Framework 3.5.
You create a new form in your application. You add a PrintDocument control named pntDoc to the form.
To support the print functionality, you write the following code segment in the application. (Line numbers are included for reference only.)

01 pntDoc.BeginPrint += new PrintEventHandler(PrintDoc_BeginPrint);
02 …
03 bool canPrint = CheckPrintAccessControl();
04 if (!canPrint) {
05
06 }
07

You need to ensure that the following requirements are met:
* When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled.
* Print operations are logged whether or not the user has print access.
What should you do?

What should you do to ensure that the application completes the upload efficiently?

You are creating a Windows component by using the .NET Framework 3.5.
The component will be used in Microsoft Word 2007 by using a ribbon button.
The component uploads large files to a network file share. You find that Word 2007 becomes non-responsive during the upload.
You plan to create your own thread to execute the upload. You need to ensure that the application completes the upload efficiently.
What should you do?


Page 1 of 41234