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

What should you do ?

You create a Windows application by using the .NET Framework 3.5. The application is used by employees to submit timesheets and to generate reports. The application must contain a Managers role and an Employees role. You have the following security requirements:

* Members of the Managers role can approve the timesheets.
* Members of the Employees role can generate reports only if they are a member of the local administrators group.
* Members of the Managers role can access the application from untrusted domains.

You need to design a security model to meet the design requirements. 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?

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?

Which two actions should you perform?

You are creating a Windows application by using the .NET Framework 3.5. The application will be used by the shipping department of your company. The application contains a form named SchedulingForm. You plan to design a strategy to ensure the following accessibility criteria:

* SchedulingForm is accessible only to users logged on by using a particular Windows account.
* The Windows account belongs to a local group named Managers.

You need to implement the strategy by using the minimum amount of development effort. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)


Page 1 of 912345...Last »