Killtest题库

专业IT认证题库学习资料,助您通过IT认证考试!

« killtest题库网提供最新的70-431题库下载!最新的000-085题库免费下载! »

killtest题库网分享最新的70-528题库下载!

考试代号:70-528

认证名称:TS: Microsoft .NET Framework 2.0 - Web-based Client Development

版本号:V8.02

考题数量:149

更新日期:2010-8-14

1.You work as a Microsoft ASP.NET developer at Cer-tech.com. Cer-tech.com uses the Microsoft Visual Studio .NET 2005 as their application development platform. You use a Microsoft Windows XP

Professional client computer named Computer01 as your development computer. Internet Information Services (IIS) is installed on Computer01. You are developing a Web application for Cer-tech.com's existing Web site. The Web application implements role-based security to allow for the administration and maintenance of the Cer-tech.com Web site. It allows members of the Admins role to administer the Web site, including the databases used by the Web site, while allowing members of the Support role to a

maintain the Web site by adding and editing product information. Only members of the Admins role

should have access to confidential user information. What code segment should you use?

A.if (User.Identity.Name != "Support") Return; //Show user info

B.if (User.IsInRole("Support")) Return; //Show user info

C.if (User.Identity.Name == "Admins") Return; //Show user info

D.if (User.IsInRole("Admins")) Return; //Show user info

Answer:D

2.You are employed as an application developer in a company which is named Cer-tech. You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new features of ASP.NET 2.0.

Now you are in charge of the company network and provide technical support for your company. The Cer-tech.com network consists of a single Active Directory domain named Cer-tech.com. You create a Web site, which processes stamp orders. Following code segment are contained in one application

method: XmlDocument doc = newXmlDocument(); doc.LoadXml("10" +" "); Of the following code segments, which one should be used to remove the discount element from XmlDocument? (Each correct answer presents a complete solution. Choose two.)

A.The code segment of doc.RemoveChild(doc.FirstChild) would be used to remove the discount element from XmlDocument;

B.The code segment of doc.DocumentElement.RemoveChild(doc.FirstChild) would be used to remove the discount element from XmlDocument;

C.The code segment of XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild) would

be used to remove the discount element from XmlDocument;

D.The code segment of XmlNode root =

doc.DocumentElement;root.RemoveChild(root.SelectSingleNode("discount")) would be used to remove the discount element from XmlDocument;

Answer:C D

3.You work as an application developer at Cer-tech.com. You are in the process of developing a Web application that connects to a Microsoft SQL Server database by using the SqlConnection object. The connection objects are currently being pooled and as the pool gets full the connection request on the database are queued. As a result, a number of connection requests are being rejected. You need to minimize the rejection of connection requests and you ensure that your application releases connections

back to the pool as quick as possible. What should you do? (Choose all that apply)

A.The Max Pool Size value inside the connection string should be increased.

B.Call the Close method on every connection object after it has finished executing.

C.The Min Pool Size value inside the connection string should be increased.

D.The value of the ConnectionTimeout property of the SqlConnection object should be increased.

E.The connection object needs to be left open after it has finished executing.

Answer:A B D

4.You are employed as an application developer in a company which is named Cer-tech. You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new features of ASP.NET 2.0.

Now you are in charge of the company network and provide technical support for your company. The Cer-tech.com network consists of a single Active Directory domain named Cer-tech.com. After Web sites are created for your company, a consistent design is applied to the pages and controls of the Web sites.

Now you have to make style changes to all of the Web sites on the Web server. You are not allowed to edit the individual pages on each Web site when you try to achieve this goal. What action should you perform?

A.You have to specify the section in the Web.config file to assign a theme.

B.A theme should be placed in the App_Themes directory under the application root directory.

C.A theme should be placed under an ASP.NETClientFiles folder under the ASP.NET installation directory.

D.You have to set the directive to the name of the application theme to assign a theme.

Answer:A C

5.You work as a Microsoft ASP.NET developer at Cer-tech.com. Cer-tech.com uses the Microsoft Visual Studio .NET 2005 as their application development platform. The Cer-tech.com network contains an SQL Server 2005 database server named DB01. A database named Products is hosted in the default instance on DB01. You use a Microsoft Windows XP Professional client computer named Computer01 as your development computer. Internet Information Services (IIS) is installed on Computer01. You are

developing a Web application on Computer01 that uses the .NET Data Provider for Microsoft SQL Server to access the Products database. DB01 does not have file access to the Web application. The Web application uses a stored procedure named sp_GetCategories to return a list of product categories from the Products database. However, the sp_GetCategories stored procedure raises the following error:

RAISERROR('A premise overlap has occurred.',1,1) You want to write these errors to a custom log on Computer01. What should you do?

A.Attach an event handler to the InfoMessage event of the SqlConnection instance. Write the value of the Message property to the log file.

B.Call the xp_logevent extended stored procedure from the sp_GetCategories stored procedure. Pass the error message as a parameter.

C.Replace the sp_GetCategories stored procedure with a managed stored procedure.Use the FileStream class to write the message to the log file.

D.Use a try/catch block to catch instances of SqlExceptions. Write the value of the Message property to the log file.

Answer:A

6.You are employed as an application developer in a company which is named Cer-tech. You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new features of ASP.NET 2.0.

Now you are in charge of the company network and provide technical support for your company. The Cer-tech.com network consists of a single Active Directory domain named Cer-tech.com. To meet the business needs, a Web site is created by you. This Web site stores users' active themes in user profile objects. When the user logs on to the Web site, you have to apply their preferred themes. What action should you perform?

A.In the PreLoad event handler, The Theme property of the Page object based on the user profile.

B.The Theme property of the Page object has to be set based on the user profile in the OnLoad event handler.

C.The Theme property of the Page object has to be set based on the user profile in the PreInit event handler.

D.The Theme property of the Page object has to be set based on the user profile in the InitComplete event handler.

Answer:C

  如需下载更多的题库,可登陆killtest题库网

 

 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最近发表

Powered By Z-Blog 1.8 Arwen Build 81206

Copyright xxxx-xxxx Your WebSite. Some Rights Reserved.