PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which local data store should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application must use a local data store to support those applications that connect occasionally.
You need to ensure that the local data store meets the following requirements:
– It does not create additional services on client computers.
– It provides synchronization capabilities to other data stores.
Which local data store should you use?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application retrieves individual product details from a database within the network. The product details frequently change. The product details available to the application can be up to one hour old. The details of a single product can be retrieved
multiple times during a single execution of the application. You need to design a caching strategy that uses the minimum amount of network bandwidth. 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 Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You are currently developing a Microsoft.NET Remoting component that will allow all Domain.com employees to send messages and receive messages to each other. To this end you implement the message functionality in an assembly named Messenger.dll. Messenger.dll contains the remotable types. You further implement a host application to host the remotable types and a client application that will provide the user interface. The Messenger.dll assembly must be private to the application and thus you use both client and server configuration files to configure .NET Remoting. Keep in mind that you are not using any custom .NET Remoting extensions, i.e. custom formatters or custom channels. You thus need to configure the application so that you can use strongly-typed instances of the remotable types in the client application.

What should you do?

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 multiple enterprise applications by using the .NET Framework 3.5. All the applications will be deployed on a single computer.
You purchase a COM component from a third-party vendor. You plan to reuse a specific functionality of the component in the applications.
The COM component will be used by 25 developers who work on different applications.
You need to ensure that the types referenced in the COM component are compatible among the developers.
What should you do?

Which code segment should you add at line 03?

ou are creating a multiple-document interface (MDI) application by using the .NET Framework 3.5. You configure the frmParent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.)

01 Form frmChild = new Form();
02 Form frmParent = this;
03

You need to associate and display the frmChild form and the frmParent form.Which code segment should you add at line 03?

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 Microsoft.NET Remoting components forms part of your responsibilities at Domain.com. You are currently developing a Microsoft.NET Remoting component that will be accessed over the Domain.com local area network (LAN). To this end you create a console application named RemoteHost.exe to serve remote calls to the component. You added Remoting configuration settings in the app.config file of the console application’s project. Now you need to configure the host application to use those configuration settings that has been added in the app.config file.

What should you do? (Choose the appropriate code segment.)

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
You build reports by using the Microsoft SQL Server 2008 Reporting Services (SSRS). The sales
associates of the company execute the reports locally.
Parameters are entered in a MicrosoftReportViewer control that calls a stored procedure to execute the
report.
The sales associates frequently report that the data returned on execution is not the most recent.
You need to ensure that each time a report is executed, real-time data is displayed.
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.
The application uses a Microsoft SQL Server database. During testing, the application intermittently logs the following exception message:
“Transaction (Process ID xxx) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.”
The error cannot be reproduced in the development environment. You need to identify the root cause of the exception.
What should you do?

Which code segment should you use?

You are creating a Windows Forms application for a courier company by using the .NET Framework 3.5. You create a form that allows customers to track the progress of their shipments.
The form contains the following elements:

* A text box named txtTN that allows users to enter a tracking number
*An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number
* A function named ValidTrackingNumber that validates tracking numbers

You need to ensure that the txtTN text box is validated.Which code segment should you use?