分类:
2010-09-02 15:12:06
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
如需下载更多的题库,你可登陆!