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 add at line 02?

You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in the application. You add a ContextMenuStrip control named ctxMenu to the form. You have a user-defined class named CustomControl. You write the following code segment in the application. (Line numbers are included for reference only.)

01 CustomControl myControl = new CustomControl();
02

You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxMenu control. Which code segment should you add at line 02?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application uses a Web Service to allow managers to retrieve employee performance data. The application allowsmanagers to access and modify data offline. The employee performance data is sensitive and must be protected. You need to implement an offline storage strategy. What should you do?

Which control should you use?

You are creating a Windows application by using the .NET Framework 3.5. The application contains a form to enter user details. The application must capture the preferred search engine as part of input data. You discover that the preferred search engine can be a known search engine or an unknown one. You need to allow
the user to select a value for the preferred search engine from a list of search engines. You also need to allow the user to enter a value for the search engine in the same list. Which control should you use?

Which two actions should you perform?

You create a Windows application by using the .NET Framework 3.5. You plan to test the application by using 5,000 records in a limited test environment. The application will process 1 million records in a production environment. You need to test the application to identify potential problems that might occur when the
application is moved to the production environment. Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

What should you do to ensure that the requirements are met by using minimum possible development effort?

4:You are creating a Windows application by using the .NET Framework 3.5. The application must meet the following requirements:

* It records the details of the users who modify sensitive information.
* It requires a context-related stack dump for the details.
* It is executed by using the local user account without administrative privileges.

You need to ensure that the requirements are met by using minimum possible development effort. What should you do?

Which code segment should you add at line 06?

You are creating a Windows Forms application by using the .NET Framework 3.5.You write the following code segment to bind a list of categories to a drop-down list. (Line numbers are included for reference only.)

01 OleDbConnection cnnNorthwind =new OleDbConnection(connectionString);
02 OleDbCommand cmdCategory = new OleDbCommand(“SELECT CategoryID, CategoryName FROM Categories ORDER BYCategoryName”, cnnNorthwind);
03 OleDbDataAdapter daCategory = newOleDbDataAdapter(cmdCategory);
04 DataSet dsCategory = new DataSet();
05 daCategory.Fill(dsCategory);
06

You need to ensure that the drop-down list meets the following requirements:
* Displays all category names.
* Uses the category ID as the selected item value.
Which code segment should you add at line 06?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application will be used to manage records of patients at the hospital. Each application form contains a TreeView control that displays a hierarchical list of patients. Items from the TreeView controls can be dragged to other controls on the form. Each form has a different layout. You discover that items from the TreeView controls of 10 forms cannot be dragged to other forms. You need to ensure that the TreeView controls across all forms in the application function appropriately. You want to achieve this goal by using minimum development effort. What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.The application makes function calls to an unmanaged library to control the operation of a robot. You create a class that consumes significant memory during function calls to the unmanaged library. You discover that memory consumption increases over time. You need to ensure that the application consistentlyconsumes minimum memory. What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application is deployed by using the XCopy command. Updates to the application are made available through a Web site. The number of users of the application increases. You need to ensure that all users use the same version of the application. What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application is used to retrieve information about musicians. The application uses LINQ to SQL to return an Artist object, and related Album objects for each artist. You plan to add a method named FindArtists. The method has parameters named ArtistName of type string and IncludeAlbums of type boolean. The FindArtists method must meet the following requirements: If the IncludeAlbums parameter is set to True, then all the Album objects of the returned Artist object are populated. If the IncludeAlbums parameter is set to False, then all the Album objects of the returned Artist object are not populated. No duplicated data is returned. Data returned does not require additional processing on the client application. You need to ensure that changes to the client application are minimal. What should you do?


Page 3 of 912345...Last »