為大家收集整理了《2013微軟認(rèn)證考試練習(xí)題及答案(32)》供大家參考,希望對大家有所幫助?。?!
QUESTION 76
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a mobile Web page.
You add the following StyleSheet control to the Web page.
You need to add a Label control named MyLabel that uses the defined style in the MyStyleSheet StyleSheet control.
Which markup should you use?
A.
B.
C.
D.
Answer: A
QUESTION 77
You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a theme to the ASP.NET application.
You need to apply the theme to override any settings of individual controls.
What should you do?
A.In the Web.config file of the application, set the Theme attribute of the pages element to the name of the theme.
B.In the Web.config file of the application, set the StyleSheetTheme attribute of the pages element to the name of the theme.
C.Add a master page to the application. In the @Master directive, set the Theme attribute to the name of the theme.
D.Add a master page to the application. In the @Master directive, set the StyleSheetTheme attribute to the name of the theme.
Answer: A
QUESTION 78
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses 10 themes and allows the users to select their themes for the Web page.
When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer.
The application runs on different storage types and in different environments.
You need to store the themes that are selected by the users and retrieve the required theme.
What should you do?
A.Use the Application object to store the name of the theme tha is selected by the user.
B.Retrieve the required theme name from the Application object each time the user visits a page
C.Use the Session object to store the name of the theme that is selected by the user.
D.Retrieve the required theme name fro the Session object each time the user visits a page.
E.Use the Response.Cookies collection to store the name of the theme that is selected by the user.
F.Use the Request. Cookies collection to identify the theme that was selected by the user each time the user visits a page.
G.Add a setting for the theme to the profile section of the Web.config file of the application.
H.Use the Profile.Theme string theme to store the name of the theme that is selected by the user.
I.Retrieve the required theme name each time the user visits a page.
Answer: GH
QUESTION 79
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application must redirect the original URL to a different ASPX page.
You need to ensure that the users cannot view the original URL after the page is executed.
You also need to ensure that each page execution requires only one request from the client browser.
What should you do?
A.Use the Server.Transfer method to transfer execution to the correct ASPX page.
B.Use the Response.Redirect method to transfer execution to the correct ASPX page.
C.Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
D.Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.
Answer: C
QUESTION 80
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses Session objects. You are modifying the application to run on a Web farm.
You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.
What should you do?
A.Use the InProc Session Management mode to store session data in the ASP.NET worker process.
B.Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database.
C.Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm.
D.Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm.
Answer: B
QUESTION 76
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a mobile Web page.
You add the following StyleSheet control to the Web page.
You need to add a Label control named MyLabel that uses the defined style in the MyStyleSheet StyleSheet control.
Which markup should you use?
A.
B.
C.
D.
Answer: A
QUESTION 77
You modify an existing Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a theme to the ASP.NET application.
You need to apply the theme to override any settings of individual controls.
What should you do?
A.In the Web.config file of the application, set the Theme attribute of the pages element to the name of the theme.
B.In the Web.config file of the application, set the StyleSheetTheme attribute of the pages element to the name of the theme.
C.Add a master page to the application. In the @Master directive, set the Theme attribute to the name of the theme.
D.Add a master page to the application. In the @Master directive, set the StyleSheetTheme attribute to the name of the theme.
Answer: A
QUESTION 78
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses 10 themes and allows the users to select their themes for the Web page.
When a user returns to the application, the theme selected by the user is used to display pages in the application. This occurs even if the user returns to log on at a later date or from a different client computer.
The application runs on different storage types and in different environments.
You need to store the themes that are selected by the users and retrieve the required theme.
What should you do?
A.Use the Application object to store the name of the theme tha is selected by the user.
B.Retrieve the required theme name from the Application object each time the user visits a page
C.Use the Session object to store the name of the theme that is selected by the user.
D.Retrieve the required theme name fro the Session object each time the user visits a page.
E.Use the Response.Cookies collection to store the name of the theme that is selected by the user.
F.Use the Request. Cookies collection to identify the theme that was selected by the user each time the user visits a page.
G.Add a setting for the theme to the profile section of the Web.config file of the application.
H.Use the Profile.Theme string theme to store the name of the theme that is selected by the user.
I.Retrieve the required theme name each time the user visits a page.
Answer: GH
QUESTION 79
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application must redirect the original URL to a different ASPX page.
You need to ensure that the users cannot view the original URL after the page is executed.
You also need to ensure that each page execution requires only one request from the client browser.
What should you do?
A.Use the Server.Transfer method to transfer execution to the correct ASPX page.
B.Use the Response.Redirect method to transfer execution to the correct ASPX page.
C.Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
D.Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.
Answer: C
QUESTION 80
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
The application uses Session objects. You are modifying the application to run on a Web farm.
You need to ensure that the application can access the Session objects from all the servers in the Web farm. You also need to ensure that when any server in the Web farm restarts or stops responding, the Session objects are not lost.
What should you do?
A.Use the InProc Session Management mode to store session data in the ASP.NET worker process.
B.Use the SQLServer Session Management mode to store session data in a common Microsoft SQL Server 2005 database.
C.Use the SQLServer Session Management mode to store session data in an individual database for each Web server in the Web farm.
D.Use the StateServer Session Management mode to store session data in a common State Server process on a Web server in the Web farm.
Answer: B