Page 1

Exam 70-562 study material Made available by Aonetesting.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.aonetesting.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 Web application. The application make uses of 10 themes and users are permitted to choose their themes for the Web page. The theme selected by the user is used to display pages in the application when a user returns to the application. Even if the user returns to log on at a later date or from a different client computer, this also happens. The application runs on different storage types and in different environments. You have to store the themes which are chosen by the users, after this you have to retrieve the required theme. So what action should you perform? A. You should store the name of the theme that is chosen by the user by using the Session object. Each time the user visits a page, you should retrieve the required theme name from the Session object. B. You should store the name of the theme that is chosen by the user by using the Application object. Each time the user visits a page, you should retrieve the required theme name from the Application object. C. First, a setting for the theme should be added to the profile section of the Web.config file of the application. Then you should store the name of the theme chosen by the user by using the Profile.Theme string theme. At last you should retrieve the required theme name each time the user visits a page. D. You should store the name of the theme that is chosen by the user by using the Response.Cookies collection. Then you should use the Request.Cookies collection to identify the theme that was chosen by the user each time the user visits a page. Answer: C 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. According to the company requirement, a composite custom control named MyControl is created. Now an instance of the OrderFormData control has to be added to the MyControl control. Of the following code segments, which one should you use? A. protected override ControlCollection CreateControlCollection() { ControlCollection controls = new ControlCollection(this); OrderFormData oFData = new OrderFormData("OrderForm"); controls.Add(oFData); return controls;} B. protected override void CreateChildControls() { Controls.Clear(); OrderFormData oFData = new OrderFormData("OrderForm"); Controls.Add(oFData);} C. protected override void EnsureChildControls() { Controls.Clear(); OrderFormData oFData = new OrderFormData("OrderForm"); oFData.EnsureChildControls(); if (!ChildControlsCreated) CreateChildControls();} D. protected override void RenderContents(HtmlTextWriter writer) { OrderFormData oFData = new OrderFormData("OrderForm"); oFData.RenderControl(writer);} Answer: B 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. A Web page which contains a TextBox control is created. The Web page is named enrollName.aspx and the TextBox control is named txtName. The Web page cross posts to a page named displayName.aspx. A Label control named LName is contained in this contains. Now you receive an e-mail from your company CIO. According to the requirement of the company CIO, The LName Label control must display the text that was enrolled in the txtName TextBox control. You have been assigned this task to make sure of this. Of the following code segments, which one should be used? A. TextBox txtName = PreviousPage.FindControl("txtName") as TextBox;LName.Text = txtName.Text; B. LName.Text = Request.QueryString["txtName"]; C. TextBox txtName = FindControl("txtName") as TextBox;LName.Text = txtName.Text; D. TextBox txtName = Parent.FindControl("txtName") as TextBox;LName.Text = txtName.Text;

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


Answer: A 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 which consumes a Microsoft Windows Communication Foundation (WCF) service. The WCF service exposes the following method. [WebInvoke] string UpdateCustomerDetails(string custID); The application uses the code segment below to host the WCF service. WebServiceHost host = new WebServiceHost(typeof(CService), new Uri("http://win/")); ServiceEndpoint ep = host.AddServiceEndpoint(typeof(ICService), new WebHttpBinding(), ""); According to the company requirement, you have to invoke the UpdateCustomerDetails method. Of the code segments below, which one should be used? A. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri("http: //win/UpdateCustomerDetails"))ICService channel = wcf.CreateChannel();string s = channel.UpdateCustomerDetails("CustID12"); B. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri("http: //win"))ICService channel = wcf.CreateChannel();string s = channel.UpdateCustomerDetails("CustID12"); C. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new BasicHttpBinding(), "http: //win ")cf.Endpoint.Behaviors.Add(new WebHttpBehavior());ICService channel = cf.CreateChannel();string s = channel.UpdateCustomerDetails("CustID12"); D. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new WebHttpBinding(), "http: //win/UpdateCustomerDetails")ICService channel = cf.CreateChannel();string s = channel.UpdateCustomerDetails("CustID12"); 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. The application contains the device filter element below in the Web.config file. <filter name="isHtml" compare="PreferredRenderingType" argument="html32" /> A Web page is contained in the application. The Web page has the following image control. (Line numbers are used for reference only.) 1 <mobile:Image ID="imgCtrl" Runat="server"> 3 </mobile:Image> Now you receive an e-mail from your company CIO, according to his requirement, if html is supported by the Web browser, the imgCtrl Image control must display the highRes.jpg file; if html is not supported by the Web browser , the imgCtrl Image control must display lowRes.gif. The compmay has assigned this task to you. So you have to achieve this two goals. At line 2, which DeviceSpecific element should be inserted? A. <DeviceSpecific> <Choice Filter="PreferredRenderingType" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /></DeviceSpecific> B. <DeviceSpecific> <Choice Filter="isHtml" ImageUrl="highRes.jpg" /> <Choice ImageUrl="lowRes.gif" /></DeviceSpecific> C. <DeviceSpecific> <Choice Filter="PreferredRenderingType" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="PreferredRenderingType" Argument="true" ImageUrl="lowRes.gif" /></DeviceSpecific> D. <DeviceSpecific> <Choice Filter="isHtml" Argument="false" ImageUrl="highRes.jpg" /> <Choice Filter="isHtml" Argument="true" ImageUrl="lowRes.gif" /></DeviceSpecific> Answer: B For Latest 70-562 Exam Questions and study guides- visit- http://www.aonetesting.com/70-562.html


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. A Web page named HomePage.aspx which contains different controls is added in the application. Then you add a newly created custom control named CachedControl to the Web page. You must make sure that the custom control state remains static for one minute and the cache settings of other elements in the Web page is not affected by the custom control. So what should you do to achieve the two goals? A. The code fragment below should be added to the Web.config file of the solution. <caching> <outputCacheSettings> <outputCacheProfiles> <add name="CachedProfileSet" varyByParam="CachedControl" duration="60" /> </outputCacheProfiles> </outputCacheSettings></caching> B. The code fragment below should be added to the Web.config file of the solution. <caching> <outputCacheSettings> <outputCacheProfiles> <add name="CachedProfileSet" varyByControl="CachedControl" duration="60" /> </outputCacheProfiles> </outputCacheSettings></caching> C. You should add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Then you should add the following code fragment to the Web.config file of the solution. <ProfileCache profile="CachedProfileSet" varyByParam="CachedControl" duration="60"></ProfileCache><caching> <outputCache enableOutputCache="true"/></caching> D. You should add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page. Then you should add the following code fragment to the Web.config file of the solution. <ProfileCache profile="CachedProfileSet" varyByControl="CachedControl" duration="60"></ProfileCache><caching> <outputCache enableOutputCache="true"/></caching> Answer: B 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. You deploy an ASP.NET Web application on a local computer, the application needs to connect to a local instance of Microsoft SQL Server 2005. You should choose Windows Authentication when connecting to this instance. On both local computers, you intend to install the database elements for the membership providers, besides this, you plan to install the database elements for the role management providers. What should you do? A. From the command line, run the aspnet_regsql.exe -E -S localhost -A mr command. B. From the command line, run the aspnet_regiis.exe -s localhost command. C. From the command line, run the sqlmetal.exe /server:localhost command. D. From the command line, run the sqlcmd.exe -S localhost E command. 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. You write the following code fragment. (Line numbers are used for reference only.) 1 <asp:UpdatePanel ID="upnData" runat="server" 2 ChildrenAsTriggers="false" UpdateMode="Conditional"> 3 <Triggers>0405 </Triggers> 6 <ContentTemplate> 7 <!-- more content here --> 8 <asp:LinkButton ID="lbkLoad" runat="server" Text="Load" 9 onclick="lbkLoad_Click" />10 <asp:Button ID="btnSubmit" runat="server" Text="Submit" 11 Width="150px" onclick="btnSubmit_Click" />12 </ContentTemplate> 13 </asp:UpdatePanel> 14 <asp:Button ID="btnUpdate" runat="server" Text="Update" 15 Width="150px" onclick="btnUpdate_Click" /> Look at the table which contains some requirements. You must make sure that the requirements shown in the above table are met. So what action should you perform?

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


A. In line 2, the value of the ChildrenAsTriggers property should be set to true. At line 4, add the following code fragment. <asp:AsyncPostBackTrigger ControlID="btnSubmit" /> <asp:PostBackTrigger ControlID="btnUpdate" /> B. In line 2, the value of the ChildrenAsTriggers property should be set to true. At line 4, add the following code fragment. <asp:AsyncPostBackTrigger ControlID="btnUpdate" /> <asp:PostBackTrigger ControlID="btnSubmit" /> C. In line 2, the value of the ChildrenAsTriggers property should be set to false. At line 4, add the following code fragment at line 04. <asp:AsyncPostBackTrigger ControlID="btnUpdate" /> <asp:PostBackTrigger ControlID="btnSubmit" /> D. In line 2, the value of the ChildrenAsTriggers property should be set to false. At line 4, add the following code fragment. <asp:AsyncPostBackTrigger ControlID="btnSubmit" /> <asp:PostBackTrigger ControlID="btnUpdate" /> Answer: B

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


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

http://www.aonetesting.com

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

Exam 70-562 Preparation Questions  

Aonetesting the leading source in certification preparation services, all certification guaranteed study material, question and answers, pra...

Advertisement