PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

A method in your Windows Forms application executes a stored procedure in a Microsoft SQL Server 2005 database, and then executes a second stored procedure in a second SQL Server 2005 database. You need to ensure that the call to the first stored procedure writes changes only if the call to the second stored procedure succeeds. Installation requirements prohibit you from introducing new components that use the COM+ hosting model. What should you do?

What should you do?

A client application must connect to a .NET Framework remoting class that is running in a Windows service that is deployed to a computer named APPSERVER1.
The class is named SimpleMathClass and it exists within a namespace named SimpleMath in an assembly named SimpleMathLib.
It is exposed through the TCP and it is configured with the objectUri attribute set to SimpleMath.rem.
You write the following XML configuration settings in the App.config file of the client application.

<configuration>
<system.runtime.remoting>
<application>
</application>
</system.runtime.remoting>
</configuration>

You need to ensure that the client application can connect to the remoting class.

What should you do?

<?xml version="1.0"?

A Windows Forms application reads the following XML file.

<?xml version=”1.0″?>
<x:catalog xmlns:x=”urn:books”>
<book id=”bk101″>
<author>Gambardella, Matthew</author>
<title>XML Developer’s Guide</title>
</book>
<book id=”bk102″>
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
</book>
</x:catalog>

The form initialization loads this file into an XmlDocument object named docBooks. You need to populate a ListBox control named lstBooks with the concatenated book ID and title of each book. Which code segment should you use?

What should you do?

You are writing a .NET Framework remoting client application.
The server application raises events to the client application using an interface named IBroadcaster and an event wrapper.
The event wrapper and the interface are located in an assembly named General that is common to the client and server.
The server configuration file is as follows:

<system.runtime.remoting>
<application>
<channels>
<channel ref=”http” port=”2020″>
<serverProviders>
<formatter ref=”binary” typeFilterLevel=”Full” />
</serverProviders>
<clientProviders>
<formatter ref=”binary” />
</clientProviders>
</channel>
</channels>
<service>
<wellknown mode=”Singleton” type=”Server.Broadcaster, Server” objectUri=”Broadcaster.soap” />
</service>
</application>
</system.runtime.remoting>

You need to ensure that the server can raise events on the client application.

What should you do?

What should you do?

You are modifying a Windows Forms application. The application consists of a main window with many different controls. All of the controls provide tool tips that use the default ToolTip control settings. One group of controls provides tool tips that show regulatory guidance for the user. Users want the wait time when reading the tool tips and navigating among them to be minimal. You need to ensure that this group of controls provides short delays before the tool tips appear. What should you do?