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.)
Which methods should you use?
You are an enterprise application developer. You are designing a new component to prioritize security requirements and performance. The component contains methods as shown in the following table. Method NameFunctionBuildCompositeInputConsolidates input to the component from other components. BuildPrivateInputInputs data that is private to other component routines. UserInputInputs data from the user.
You need to identify the methods that require run time validation of inputs. You also need to ensure that these methods do not add performance overhead.
Which methods should you use?
What should you do?
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?
What should you do?
You are an enterprise application developer. The data access layer of an application contains the following code segment. (Line numbers are included for reference only.)
01 static public List<Employee> GetEmployees()
{
02 List<Employee> employees = new List<Employee>();
03 using (SqlConnection cnn = new SqlConnection(_cnnStr))
{
04 SqlCommand cmd = new SqlCommand(“GetEmployees”, cnn);
05 cnn.Open();
06 DataSet ds = new DataSet();
07 SqlDataAdapter da = new SqlDataAdapter(cmd);
08 da.Fill(ds);
09 foreach (DataRow row in ds.Tables[0].Rows)
{
10 Employee emp = new Employee();
11 emp.ID = Convert.ToInt32(row[“Id”]);
12 emp.Name = Convert.ToString(row[“Name”]);
13 employees.Add(emp);
14
}
15
}
16 return employees;
17
}
You review the code segment and discover that it takes a long time to execute. You need to modify the code segment to improve the performance.
What should you do?
What should you do?
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?
Which three actions should you perform?
You are an enterprise application developer. You develop an application by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. You are designing a business component that
is used to process sales orders. You need to ensure that the component meets the following requirements: It is available to Windows and Web-based applications on the local network.It uses the most efficient network access protocol.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
What should you do?
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?
Which class diagram should you use?
You are an enterprise application developer. You develop an application by using the Microsoft Visual Studio .NET 2005 and the .NET Framework 2.0. The application will be used by financial institutions. Financial institutions can operate checking accounts, savings accounts, and credit cards to customers. Customers can use Automated Teller Machine (ATMs) to manage their accounts.
You need to design a class diagram for the application to meet the following requirements:
* The Checking class must be a type of the BankAccount class.
* The Savings class must be a type of BankAccount class.
* The BankAccount class can be a type of the ATM interface.
* The CreditCard class can be a type of the ATM interface.
Which class diagram should you use?
What should you do?
You are creating a Windows application by using the .NET Framework 3.5.
The application has the following specifications:
It uses a centralized Microsoft SQL Server 2008 database instance.
It is deployed to several computers within the network.
It retrieves and updates the records of the Customer table.
A customer record can exist on multiple forms within the application. Users log on to the application by
using their unique user ID. You implement optimistic concurrency on the Customer table.
You need to design a strategy to detect conflicts by using minimum amount of network bandwidth.
What should you do?
Which collection should you use?
You are an enterprise application developer. You plan to create a data access component. You need to identify the appropriate collection that meets following requirements: Provides type safety
at design time.Requires minimum development effort.
Which collection should you use?