What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. You plan to add an existing .NET component into the current application. The .NET component has insufficient documentation. The structure of the classes in the component must be analyzed before they are incorporated in the application. You need to analyze the members in the component and the dependencies among them. What should you do?
What should you do?
You have a custom master page named MyApplication.master.
You need to apply MyApplication.master to only a custom application page in a SharePoint site. You must achieve the goal by using the minimum amount of effort.
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?
Which line of code should you insert at line 08?
You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.You write the following code segment. (Line numbers are included for reference
only.)
01 DataTable dt = new DataTable();
02 dt.Columns.Add(“number”);
03 dt.Columns.Add(“string”);
04 dt.Rows.Add(1, “3”);
05 dt.Rows.Add(2, “2”);
06 dt.Rows.Add(3, “1”);
07 var result = from p in dt.AsEnumerable()
08
09 foreach (var number in result) {
10 Console.Write(number.ToString());
11 }
You need to display the string “321”.Which line of code should you insert at line 08?
What should you do?
You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application contains several classes. A code review reveals redundant business logic within the classes in the application. You need to eliminate the redundant business logic in the classes. What should you do?
What should you do?
You have a SharePoint site. The current master page of the site is v4.master.
You create a custom master page named MyMasterPage.master.
You deploy the master page to /_catalogs/masterpage/.
You need to apply the custom master page to only the content pages of the site.
What should you do?
Which code fragment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment.
You need to configure SessionState for the application.
Which code fragment should you use?
Which code segment should you add at line 03?
You are creating a Windows application for a financial services provider by using the .NET
Framework 3.5.You write the following code segment in the form. (Line numbers are
included for reference only.)
01 string queryString =
02 “SELECT CategoryID, CategoryName FROM Categories”;
03
The connection string for the financial services database is stored in the variable named
connString.You need to ensure that the form populates a DataGridView control named
gridCAT. Which code segment should you add at line 03?
Which configuration setting should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. The service will be exposed for consumption. You need to ensure that the service supports interoperability with the broadest possible number of Web Service toolkits. The service must also support transport-level security. Which configuration setting should you use?
Which element should you use in the Feature?
You create a Feature.
You need to remove the link to the Site Content Type page from the Site Settings page by using the Feature.
Which element should you use in the Feature?