為大家收集整理了《2013微軟認(rèn)證考試練習(xí)題及答案(28)》供大家參考,希望對大家有所幫助?。?!
QUESTION 56
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application.
You write the following code fragment.
’ runat="server"/>
’ runat="server" />
When you access the Web page, the application throws an error.
You need to ensure that the application successfully updates each caption and stores it in the database.
What should you do?
A.Add the ID attribute to the Label control.
B.Add the ID attribute to the TextBox control.
C.Use the Bind function for the Label control instead of the Eval function.
D.Use the Eval function for the TextBox control instead of the Bind function.
Answer: B
QUESTION 57
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.
You need to ensure that the following requirements are met:
When the userrequests a page that does not exist, the PageNotFound.htm page is displayed.
When any other error occurs, the ErrorPage.htm page is displayed.
Which section should you add to the Web.config file?
A.
B.
C.
D.
Answer: B
QUESTION 58
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You plan to deploy the application to a test server.
You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.
Which code fragment should you add to the Web.config file?
A.
B.
C.
D.
Answer: B
QUESTION 59
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You host the application on a server named ContosoTest that runs Microsoft IIS 6.0. You set up remote debugging on the ContosoTest server.
You need to debug the application remotely from another computer named ContosoDev.
What should you do?
A.Attach Microsoft Visual Studio.NET to the w3wp.exe process.
B.Attach Microsoft Visual Studio.NET to the inetinfo.exe process.
C.Attach Microsoft Visual Studio.NET to the Msvsmon.exe process.
D.Attach Microsoft Visual Studio.NET to the WebDev.WebServer.exe process.
Answer: A
QUESTION 60
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application resides on a server named ContosoTest that runs Microsoft IIS 5.0.
You use a computer named ContosoDev to log on to the Contoso.com domain with an account named ContosoUser.
The ContosoTest and ContosoDev servers are members of the Contoso.com domain.
You need to set up the appropriate permission for remote debugging.
What should you do?
A.Set the Remote Debugging Monitor to use Windows Authentication.
B.Add the ContosoUser account to the domain Administrators group.
C.Add the ContosoUser account to the local Administrators group on the ContosoTest server.
D.Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account.
Answer: C
QUESTION 56
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application.
You write the following code fragment.
’ runat="server"/>
’ runat="server" />
When you access the Web page, the application throws an error.
You need to ensure that the application successfully updates each caption and stores it in the database.
What should you do?
A.Add the ID attribute to the Label control.
B.Add the ID attribute to the TextBox control.
C.Use the Bind function for the Label control instead of the Eval function.
D.Use the Eval function for the TextBox control instead of the Bind function.
Answer: B
QUESTION 57
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.
You need to ensure that the following requirements are met:
When the userrequests a page that does not exist, the PageNotFound.htm page is displayed.
When any other error occurs, the ErrorPage.htm page is displayed.
Which section should you add to the Web.config file?
A.
B.
C.
D.
Answer: B
QUESTION 58
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You plan to deploy the application to a test server.
You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.
Which code fragment should you add to the Web.config file?
A.
B.
C.
D.
Answer: B
QUESTION 59
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You host the application on a server named ContosoTest that runs Microsoft IIS 6.0. You set up remote debugging on the ContosoTest server.
You need to debug the application remotely from another computer named ContosoDev.
What should you do?
A.Attach Microsoft Visual Studio.NET to the w3wp.exe process.
B.Attach Microsoft Visual Studio.NET to the inetinfo.exe process.
C.Attach Microsoft Visual Studio.NET to the Msvsmon.exe process.
D.Attach Microsoft Visual Studio.NET to the WebDev.WebServer.exe process.
Answer: A
QUESTION 60
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application resides on a server named ContosoTest that runs Microsoft IIS 5.0.
You use a computer named ContosoDev to log on to the Contoso.com domain with an account named ContosoUser.
The ContosoTest and ContosoDev servers are members of the Contoso.com domain.
You need to set up the appropriate permission for remote debugging.
What should you do?
A.Set the Remote Debugging Monitor to use Windows Authentication.
B.Add the ContosoUser account to the domain Administrators group.
C.Add the ContosoUser account to the local Administrators group on the ContosoTest server.
D.Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account.
Answer: C