Chinaunix首页 | 论坛 | 博客
  • 博客访问: 307196
  • 博文数量: 469
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 5200
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-03 16:15
文章分类

全部博文(469)

文章存档

2011年(82)

2010年(284)

2009年(69)

2008年(34)

我的朋友

分类:

2010-09-25 09:25:51

MCTS 考试题库由我们专业IT认证讲师及产品专家精心打造,包括了当前最新的全真试题,全部附有正确答案。题库的覆盖率在96%以上,确保考生能一次通过考试。

  关于这门题库,考生需要了解的信息如下:

考试代号:

认证名称: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

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

 

阅读(161) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~