為大家收集整理了《2013微軟認(rèn)證考試練習(xí)題及答案(26)》供大家參考,希望對(duì)大家有所幫助?。?!
QUESTION 46 You create a Microsoft ASP.NET Web 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? A.
B.
C.
D.
Answer: C QUESTION 47 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. You deploy the application on a Microsoft IIS 6.0 Web server. The server runs on a worker process isolation mode, and it hosts the .NET Framework version 1.1 Web applications. When you attempt to browse the application, the following error message is received: "It is not possible to run different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process." You need to ensure that the following requirements are met: All the applications run on the server All the applications remain in process isolation mode All the applications do not change their configuration. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A.Create a new application pool and add the new application to the pool. B.Configure the IIS 6.0 to run the WWW service in the IIS 5.0 isolation mode. C.Configure the new application to use the .NET Framework version 2.0 in the IIS 6.0 Manager. D.Set autoConfig="false" on the property in the machine.config file.
E.Disable the Recycle worker processes option in the Application Pool Properties dialog box.
Answer: AC QUESTION 48 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a Web form file named MovieReviews.aspx. The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID. The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for reference only.) 01 05
06
09
11
13
15
16
You need to ensure that the users can insert and update content in the DetailsView1 control.
You also need to prevent duplication of the link button controls for the Edit and New operations.
Which code segment should you insert at line 03?
A.AllowPaging="false" AutoGenerateRows="false"
B.AllowPaging="true" AutoGenerateRows="false" DataKeyNames="MovieID"
C.AllowPaging="true" AutoGenerateDeleteButton="false" AutoGenerateEditButton="true" AutoGenerateInsertButton="true" AutoGenerateRows="false"
D.AllowPaging="false" AutoGenerateDeleteButton="false" AutoGenerateEditButton="true" AutoGenerateInsertButton="true" AutoGenerateRows="false" DataKeyNames="MovieID"
Answer: B QUESTION 49 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement? A.the ITemplatable interface B.the INamingContainer interface C.the IRequiresSessionState interface D.the IPostBackDataHandler interface
Answer: B QUESTION 50 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment. (Line numbers are included for reference only.) 01 06 07 08 09 You need to ensure that the error message displayed in the validation control is also displayed in the validation summary list. What should you do? A.Add the following code segment to line 06. Required text in TextBox1 B.Add the following code segment to line 04. Text="Required text in TextBox1" C.Add the following code segment to line 04. ErrorMessage="Required text in TextBox1" D.Add the following code segment to line 04. Text="Required text in TextBox1" ErrorMessage="ValidationSummary1"
Answer: C
QUESTION 46 You create a Microsoft ASP.NET Web 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? A.
Answer: C QUESTION 47 You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. You deploy the application on a Microsoft IIS 6.0 Web server. The server runs on a worker process isolation mode, and it hosts the .NET Framework version 1.1 Web applications. When you attempt to browse the application, the following error message is received: "It is not possible to run different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process." You need to ensure that the following requirements are met: All the applications run on the server All the applications remain in process isolation mode All the applications do not change their configuration. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A.Create a new application pool and add the new application to the pool. B.Configure the IIS 6.0 to run the WWW service in the IIS 5.0 isolation mode. C.Configure the new application to use the .NET Framework version 2.0 in the IIS 6.0 Manager. D.Set autoConfig="false" on the
Answer: AC QUESTION 48 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a Web form file named MovieReviews.aspx. The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID. The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment. (Line numbers are included for reference only.) 01 05
Answer: B QUESTION 49 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement? A.the ITemplatable interface B.the INamingContainer interface C.the IRequiresSessionState interface D.the IPostBackDataHandler interface
Answer: B QUESTION 50 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment. (Line numbers are included for reference only.) 01 06 07 08 09 You need to ensure that the error message displayed in the validation control is also displayed in the validation summary list. What should you do? A.Add the following code segment to line 06. Required text in TextBox1 B.Add the following code segment to line 04. Text="Required text in TextBox1" C.Add the following code segment to line 04. ErrorMessage="Required text in TextBox1" D.Add the following code segment to line 04. Text="Required text in TextBox1" ErrorMessage="ValidationSummary1"
Answer: C