1.
You are creating a Windows application by using the .NET Framework 3.5. The application will access an external Windows Communication Foundation (WCF) service by using the following contract. [ServiceContract(SessionMode=SessionMode.NotAllowed)] public interface IOrderService { } The service contract has multiple operations. The operations will be called by the Windows application when required. For a single invocation of the application, you plan to maintain the information of the application state between subsequent method calls to the WCF service. The application state information cannot be persisted once the application closes. You need to ensure that the application can consume the WCF service. What should you do?
2.
You create a Windows application by using the .NET Framework 3.5. You create a Windows user control in the application. The application contains the following code segment. (Line numbers are included for reference only.) 01 public struct FullName 02 { 03 public string FirstName { get; set; } 04 public string LastName { get; set; } 05 } The user control has a property named UserName of the FullName type. You add the user control to a Windows form. During the design phase, the UserName property must be allowed to update the FirstName and LastName properties as comma-delimited values in the property window. You need to ensure that the properties in the FullName structure are represented as string values. What should you do?
3.
You create a Windows application by using the .NET Framework 3.5. You review the design for a Windows application that has the following features: The data layer sends and receives data updates by using Microsoft Messaging Queue (MSMQ) 4.0. Data is stored in a Microsoft SQL Server 2008 server database instance. Data from a DataSet object is displayed in a DataGrid control. The application is deployed to portable computers that can access the corporate network only when plugged on to it. The data must be most securely stored when the computer is in offline mode. You need to ensure that the portable computers can update data even when offline. What should you do?
4.
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?
5.
You maintain a Windows Forms application and an ASP.NET application. The Windows Forms application has the following features: The application impersonates the logged-on user. The data is stored in a Microsoft SQL Server 2008 database. The application grants user access to data by calling the IPrincipal.IsInRole method on the basis of user roles. The ASP.NET application uses forms-based authentication to authenticate users. You need to share the login and user role information between the Windows Forms application and the ASP.NET application. What should you do?
6.
You create a Windows application by using the .NET Framework 3.5. You plan to evaluate an application design that contains the following specifications: Common dialog controls are used to browse through files and folders. Files are saved by using the StreamWriter object. When the Save button is clicked, a MessageBox control displays a message. The message warns the user about the requirement for elevated rights. You need to ensure that the application meets the following requirements: It works compatibly on Microsoft Windows XP and Windows Vista operating systems. It follows Windows Vista User Experience guidelines. It is able to save a physical file outside the application folder when the Save button is clicked. What change in design should you recommend?
7.
You plan to create a Windows application by using the .NET Framework 3.5. The Windows application must use a proprietary protocol to connect to a Windows Communication Foundation (WCF) service. The application persists data to a Microsoft SQL Server 2008 database by using the WCF service. You need to analyze the feasibility of creating the application. Which proof of concept should you create?
8.
You have developed a console application by using the Microsoft .NET Framework 1.1. The console application uses a set of assemblies for the business logic and the data layer. You plan to convert the console application to a Windows Forms application. You need to design a conversion strategy by using minimum amount of time and development effort. What should you do?
9.
You create a Windows application by using the .NET Framework 3.5. The application is used for data entry purposes. The application has the following features: Data is read from a shared Microsoft SQL Server 2008 database instance. Data entered and saved by the users is temporarily stored in a local SQL Server 2008 Compact edition database instance. When the users log off from the application, new records from the local database instance are synchronized to the shared database. You discover that the performance of the application is affected when multiple users log off from the application at the same time. You need to design a performance improvement strategy for the application by using minimum amount of cost, time, and development effort. What should you do?
10.
You are creating a Windows application by using the .NET Framework 3.5. You plan to evaluate the design strategy of the application. The design strategy contains the following elements: The application uses the ClickOnce deployment. The application runs on computers that have the Microsoft Windows 98 operating system, a 256-MB RAM, and a 1-GB disk space. The application transmits the collected data to a server by using a Windows Communication Foundation (WCF) service. The application must meet the following requirements: It displays real-time data. It gathers data from a serial interface. The code written for it is small and can be easily deployed. You discover that the design strategy does not function properly. You need to ensure that the design strategy functions appropriately. What should you recommend?