Which code segment should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You need to ensure that the service can send data in the following format to the client applications.
<Account Id=””>
<Name></Name>
<Balance Currency=””></Balance>
</Account>
Which code segment should you use?
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 have just completed developing and deploying a Microsoft.NET Remoting component to a server computer. Microsoft Internet Information Services (IIS) 6.0 is hosting the component. The component runs in an application pool that is configured with the default identity. You received instruction to debug the remote component. You want to do so from your development computer.
What should you do?
Which should you do?
You have an OS design for a target hardware platform that does not use battery-backed RAM. The target hardware has block storage. You need to preserve the registry data in a custom location on the block storage device. Which should you do?
Which code segment should you insert at line 06?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.)
01 string strQuery = “select * from Products;”
02 + “select * from Categories”;
03 SqlCommand cmd = new SqlCommand(strQuery, cnn);
04 cnn.Open();
05 SqlDataReader rdr = cmd.ExecuteReader();
06
07 rdr.Close();
08 cnn.Close();
You need to ensure that the gvProducts and gvCategories GridView controls display the data that is contained in the following two database tables:
The Products database table
The Categories database table
Which code segment should you insert at line 06?
should you insert at line 02?
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.The application contains a SqlDataAdapter object named daOrder. The
SelectCommand property of the daOrder object is set. You write the following code
segment. (Line numbers are included for reference only.)
01 private void ModifyDataAdapter() {
02
03 }
You need to ensure that the daOrder object can also handle updates. Which code segment
should you insert at line 02?
Which code segment should you insert at line 04?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You write the following code segment for the service implementation. (Line numbers are included for reference only.)
01 public void PutMessage(Message msg)
02 {
03 string value=null;
05 }
You need to retrieve the content from the received message body and store it in the variable named value. Which code segment should you insert at line 04?
Which code segment should you use?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service contains the following code segment.
[DataContract]
public class Person
{
??
}
[DataContract]
public class Customer : Person
{
??
}
You need to create a service contract that meets the following requirements:
The service contract must have an operation contract named GetPerson that returns an object of type Person.
The GetPerson operation must be able to return an object of type Customer.
Which code segment should you use?
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 creation, configuration and deployment of Remoting applications form 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 need to measure the interrupt service thread (IST) latency for a target hardware platform. What should you do?
Which code segment you should insert at line 12?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web form that contains the following code fragment.
<asp:TextBox runat=”server” ID=”txtSearch” />
<asp:Button runat=”server” ID=”btnSearch” Text=”Search”
OnClick=”btnSearch_Click” />
<asp:GridView runat=”server” ID=”gridCities” />
You write the following code segment in the code-behind file. (Line numbers are included
for reference only.)
01 protected void Page_Load(object sender, EventArgs e)
02 {
03 DataSet objDS = new DataSet();
04 SqlDataAdapter objDA = new SqlDataAdapter(objCmd);
05 objDA.Fill(objDS);
06 gridCities.DataSource = objDs;
07 gridCities.DataBind();
08 Session[“ds”] = objDS;
09 }
10 protected void btnSearch_Click(object sender, EventArgs e)
11 {
12
13 }
You need to ensure that when the btnSearch Button control is clicked, the records in
the gridCities GridView control are filtered by using the value of the txtSearch TextBox.
Which code segment you should insert at line 12?