Issuu on Google+

Exam 70­562 study material Made available by CertsKing.com

 

  

Free 70­562 Exam Preparation Questions  Exam  70­562    : TS: Microsoft .NET Framework 3.5, ASP.NET Application Development

For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


Question:1 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET AJAX application. In order to debug the JavaScript code in the AJAX application, Microsoft Visual Studio 2008 debugger is attached to the Microsoft Internet Explorer instance. Now you receive an order from your company manager, according to his requirement, the application must display the details of the client-side object on the debugger console. The manager asks you to make sure of this. So what action should you perform? A. In order to make sure of this, the Sys.Debug.assert method should be used. B. In order to make sure of this, the Sys.Debug.traceDump method should be used. C. In order to make sure of this, the Sys.Debug.fail method should be used. D. In order to make sure of this, the Sys.Debug.trace method should be used. Answer: B Question:2 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application on a Microsoft IIS 6.0 Web server. The server hosts the .NET Framework version 1.1 Web applications and runs on a worker process isolation mode. An error message pops up when you browse the application. The error message is "It is impossible to run different versions of ASP.NET in the same IIS process. Please reconfigure your server to run the application in a separate process by using the IIS Adinistratration Tool." You must make sure that all the applications run on the server and remain in process isolation mode, and do not change their configurations. What action should you perform? (choose more thano one) A. You should configure the IIS 6.0, making it run the WWW service in the IIS 5.0 isolation mode. B. You should add the new application to the application pool that you create. C. In the Application Pool Properties dialog box, you should disable the Recycle worker processes option. D. You should configure the new application, making it use the .NET Framework version 2.0 in the IIS 6.0 Manager. E. You should set autoConfig="false" on the <processModel> property in the machine.config file. Answer: B, D Question:3 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application. There is a server named WiikigoTest which runs Microsoft IIS 5.0. The WiikigoTest server hosts the application. There is a computer named WiikigoComp. You log on to the Wiikigo.com domain by using this computer with an account named WiikigoUser. Both the WiikigoComp and WiikigoTest are members of the Wiikigo.com domain. Now you receive an order from your company manager, according to his requirement, remote debugging should be allowed. So you have to set up the appropriate permission for remote debugging. What action should you do? A. The ContosoUser account should be added to the domain Administrators group. B. You should set the Remote Debugging Monitor, making it use Windows Authentication. C. On the ContosoTest server, you should change the ASP.NET worker process, making it run as the local Administrator account. D. The ContosoUser account should be added to the local Administrators group on the ContosoTest server. Answer: D Question:4 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application. You create a Web form is created. The Web form contains the following code fragment.

For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


<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.) 1 protected void Page_Load(object sender, EventArgs e) 2 { 3 DataSet objDS = new DataSet(); 4 SqlDataAdapter objDA = new SqlDataAdapter(objCmd); 5 objDA.Fill(objDS); 6 gridCities.DataSource = objDs; 7 gridCities.DataBind(); 8 Session["ds"] = objDS; 9 } 10 protected void btnSearch_Click(object sender, EventArgs e)11 { 12 13 } Now you get an e-mail from your company CIO, according to his requirement, by using the value of the txtSearch TextBox, the records in the gridCities GridView control are filtered when the btnSearch Button control is clicked. You're assigned this task to make sure of this. At line 12, which code segment you be inserted? A. DataSet ds = gridCities.DataSource as DataSet; DataView dv = ds.Tables[0].DefaultView; dv.RowFilter = "CityName LIKE '" + txtSearch.Text + "%'"; gridCities.DataSource = dv; gridCities.DataBind(); B. DataSet ds = Session["ds"] as DataSet; DataView dv = ds.Tables[0].DefaultView; dv.RowFilter = "CityName LIKE '" + txtSearch.Text + "%'"; gridCities.DataSource = dv; gridCities.DataBind(); C. DataTable dt = Session["ds"] as DataTable; DataView dv = dt.DefaultView; dv.RowFilter = "CityName LIKE '" + txtSearch.Text + "%'"; gridCities.DataSource = dv; gridCities.DataBind(); D. DataSet ds = Session["ds"] as DataSet; DataTable dt = ds.Tables[0]; DataRow[] rows = dt.Select("CityName LIKE '" + txtSearch.Text + "%'"); gridCities.DataSource = rows; gridCities.DataBind(); Answer: B Question:5 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application which permits users to post comments to a page. Other users can also view this page. You add a SqlDataSource control named SqlDS1. You write the following code segment. (Linenumbers are included for reference only.) 1 private void SaveComment() 2 { 3 string ipaddr; 4 5 SqlDS1.InsertParameters["IPAddress"].DefaultValue = ipaddr; 6 ... 7 SqlDS1.Insert(); 8 } Now you receive an order from your company manager, according to his requirement, the IP Address of each user who posts a comment must be captured along with the user's comment. At line 4, which code segment should be inserted? A. ipaddr = Application["REMOTE_ADDR"].ToString(); B. ipaddr = Server["REMOTE_ADDR"].ToString(); C. ipaddr = Request.ServerVariables["REMOTE_ADDR"].ToString(); D. ipaddr = Session["REMOTE_ADDR"].ToString(); Answer: C Question:6 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application. Now you company CIO wants to deploy the application to a test server. He assigns this task to you. The code-behind files for the Web pages must be compiled during the initial request to the application. You must make sure of this. Besides this, you have to improve the performance of the application. Of the following code fragments, which one should be added to the Web.config file? A. <compilation debug="false" batch="false"> B. <compilation debug="true"> C. <compilation debug="true" batch="true"> D. <compilation debug="false"> Answer: D

For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


Question:7 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application. In the application, a single master page is used by all the content pages. The master page browses the site by using a static navigation menu. Now you receive an order from your company manager, according to his requirement, the content pages must be able to optionally replace the static navigation menu with their own menu controls. You have been assigned to make sure of this. So what action should you perform to achieve this goal? A. Add the following code fragment to the master page. <asp:ContentPlaceHolder ID="MenuPlaceHolder" runat="server"> <!-- Menu code here --></asp:ContentPlaceHolder> Add the following code fragment to the content page. <asp:Content ContentPlaceHolderID="MenuPlaceHolder"> <asp:menu ID="menuControl" runat="server"></asp:menu></asp:Content> B. Add the following code fragment to the master page. <asp:PlaceHolder ID="MenuPlaceHolder" runat="server"> <div id="menu"> <!-- Menu code here --> </div></asp:PlaceHolder> Add the following code segment to the Page_Load event of the content page. PlaceHolder placeHolder = Page.Master.FindControl("MenuPlaceHolder") as PlaceHolder;Menu menuControl = new Menu();placeHolder.Controls.Add(menuControl); C. Add the following code fragment to the master page. <asp:PlaceHolder ID="MenuPlaceHolder" runat="server"> <!-Menu code here --></asp:PlaceHolder> Add the following code fragment to the content page. <asp:Content PlaceHolderID="MenuPlaceHolder"> <asp:menu ID="menuControl" runat="server"></asp:menu></asp:Content> D. Add the following code fragment to the master page. <asp:ContentPlaceHolder ID="MenuPlaceHolder" runat="server"> <!-- Menu code here --></asp:ContentPlaceHolder> Add the following code segment to the Page_Load event of the content page. ContentPlaceHolder placeHolder = Page.Master.FindControl("MenuPlaceHolder") as ContentPlaceHolder;Menu menuControl = new Menu();placeHolder.Controls.Add(menuControl); Answer: A Question:8 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application which runs on Microsoft IIS 6.0. A page named usedPage.aspx is created. Now your company assigns a task to you. According to his requirement, the browser must display the URL of the usedPage.aspx page and the page named newPage.aspx. You have to achieve this goal. So in the options below, which code segment should be used? A. Response.Redirect("newPage.aspx"); B. Server.Transfer("newPage.aspx"); C. if (Request.Url.UserEscaped) { Response.RedirectLocation = "oldPage.aspx"; Response.Redirect("newPage.aspx", true);}else { Response.Redirect("newPage.aspx");} D. if (Request.Url.UserEscaped) { Server.TransferRequest("newPage.aspx");}else { Response.Redirect("newPage.aspx", true);} Answer: B Question:9 You are an application developer and you have about two years experience in developing Web-based applications by using Microsoft ASP.NET. Now you are employed in a company named Wiikigo. You use the Microsoft .NET Framework version 3.5 to create a Microsoft ASP.NET Web application. There are two Web pages in the application. The two Web pages are respectively named BillDetails.aspx and BillError.htm. A stack trace is displayed to remote users if the application throws unhandled errors in the BillDetails.aspx Web page. You must make sure that the BillError.htm Web page is displayed for unhandled errors only in the BillDetails.aspx Web page. So what action should you perform? A. Set the Page attribute for the BillDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="BillDetails.aspx.cs" Inherits="BillDetails" Debug="true" %> Add the following section to the Web.config file. <customErrors mode="On" defaultRedirect="BillError.htm"> B. Set the Page attribute for the BillDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="BillDetails.aspx.cs" Inherits="BillDetails" %> Add the following section to the For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


Web.config file. <customErrors mode="Off" defaultRedirect="BillError.htm"></customErrors> C. Set the Page attribute for the BillDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="BillDetails.aspx.cs" Inherits="BillDetails" Debug="true" ErrorPage="~/BillError.htm" %> Add the following section to the Web.config file. <customErrors mode="Off"></customErrors> D. Set the Page attribute for the BillDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="BillDetails.aspx.cs" Inherits="BillDetails" ErrorPage="~/BillError.htm" Debug="false" %> Add the following section to the Web.config file. <customErrors mode="On"></customErrors> Answer: D

For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


For complete Exam 70-562 Training kits and Self-Paced Study Material Visit: http://www.certsking.com/70-562.html

http://www.certsking.com/

For Latest 70­562 Exam Questions and study guides­ visit­ http://www.certsking.com/70­562.html


Exam 70-562 Preparation Questions