PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application has a class that contains a method named NewEvent. The NewEvent method contains the following code segment.

using (SqlConnection cn = new SqlConnection(connString))
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = cn;
cmd.CommandText = “prcEvent”;
cmd.Parameters.Add(“@Date”, SqlDbType.DateTime, 4);
cmd.Parameters.Add(“@Desc”, SqlDbType.VarChar, 8000);
cmd.Parameters.Add(“@Link”, SqlDbType.VarChar, 2048);
cmd.Parameters[“@Date”].Value = date;
cmd.Parameters[“@Desc”].Value = eventText;
cmd.Parameters[“@Link”].Value = eventLink;
cn.Open();
retcode = cmd.ExecuteNonQuery().ToString();
}
During the test process, a user executes the NewEvent method. The method fails and returns the following error message:
“A stored procedure named prcEvent requires a parameter named @Date.”
You need to resolve the error.
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 manage employee information. The application meets the following specifications:

* A main form named EmployeeList contains a list control that displays a list of all employees.
* The menu items help simultaneously display various detail forms for each employee selected from the list control.
* Each detail form for a selected employee contains a different set of information about the employee.

You need to ensure that when a user switches from one employee to another, the open detail forms are updated to the corresponding employee information. What should you do?

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You are currently generating a proxy making use of Microsoft Visual Studio 2005 for a Web Services Enhancements (WSE) 3.0-enabled Extensible Markup Language (XML) Web Service in a client application. Unfortunately you did not have the WSE framework installed on your computer at that stage. You thus need to add the custom code to the proxy. At present your application references the following assemblies:
1. System
2. System Configuration
3. System Data System Deployment
4. System Drawing
5. System Web Services
6. System Windows Forms
7. SystemXml
At this stage you install the WSE 3.0 framework on your computer, and in addition you also added the reference to the required WSE 3.0 assemblies to your application. Now you need to make changes to your project to enable you to dynamically apply WSE 3.0 policies to all outgoing SOAP requests. You must ensure that you do not remove any of the custom code that has already been written.

What should you do?

Which method should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application includes a server component that receives DataTable objects from client components.
Each DataTable object contains approximately 2,500,000 rows.
The server component must load new and updated records from the DataTable objects into a table in a Microsoft SQL Server 2005 database.
The schemas of the database table and the DataTable objects are identical. The database is located on a different server than the application server component.
You need to identify a method that provides the best performance to load the data into the database table.
Which method 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 work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The development and deployment of client applications forms part of your responsibilities at Domain.com. You are busy developing a client application that will access a Microsoft.NET Remoting messenger application. The messenger application will allow messages to be sent between client applications. A remote class named RemoteMessenger exposes a remote event named MessageReceived. This event will be raised in the event of a client application calling the SendMessage method of the RemoteMessenger class.
A client event sink class named MessengerEventSink handles the remote MessageReceived event in an event handler named OnMessageReceived. In the OnMessage Received handler, the MessengerEventSink class raises its own MessageReceived event.
You are required to allow the client application to be notified as well as log messages when messages are sent through the messenger application. You should take care to not modify the RemoteMessenger class or the MessengerEventSink class.

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 browse through purchase orders. The purchase order data is stored in a file on
the local computer.
The application synchronizes purchase order data with a central database by using a Web service.
You discover that other applications on the computer can access the purchase order data.
You need to ensure that the purchase order data can be accessed only by the Windows application.
What should you do?

What should you do?

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You design a performance testing strategy for the application.
The application uses the DataGridView and TreeView controls that are bound to the DataSets object.
You need to find out the size of the ViewState object when you perform a load test on the application.
What should you do?

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.)