多项选择题

你正在读入一个名为 doc 的 XML 文档,其内容如下()
 

A. foreach (XmlNode node in nodes){ node.Attributes[0].Value = “NA”;}
B. foreach (XmlNode node in nodes){ node.Attributes[1].Value = “NA”;}
C. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“/genre”); genre.Value = “NA”;}
D. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“@genre”); genre.Value = “NA”;}
E. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“genre”); genre.Value = “NA”;}


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题你正在创建一个处理 XML 文档的 Web 应用。这个 Web 应用实现从不同的源接收 XML 文档,然后读取文档并把它存储到 SQL SERVER 数据库中。已知,Web 应用会分析所有传入的文件,看他们是否符合某个 XML 架构。为此,你需要找到 XML 文档中所有的验证错误,你应该怎么做?()

A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。
B.为XmlReader对象的XmlReaderSettings设置ValidationEventHandler;
C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;
D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。

2.单项选择题当 Web 应用关闭后,你需要人工释放资源。为此,你应该响应哪一个事件?()

A.Application_BeginRequest
B.Application_End
C. Application_Start
D.Application_EndRequest

3.多项选择题你如何重定向一个指定页面到桌面计算机或移动设备?()

A.if (Request.Browser["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
B.if (Request.Cookies.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
C.if (Request.Browser.IsMobileDevice) Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if
D.if (Request.Cookies["IsMobileDevice"] == "true") Response.Redirect("MobileDefault.aspx"); else Response.Redirect("DesktopDefault.aspx"); end if


5.多项选择题下面哪一些ASP.NET控件在mobile设备上和标准控件提供了相似的功能?()

A.LinkButton
B.Label
C.RadioButton
D.Table
E.Button

6.单项选择题默认情况下,在 Microsoft Windows XP 系统上,IIS 通过匿名用户请求资源的时候,ASP.NET 使用什么安全上下文?()

A.Guest 账号
B.Network Service 账号
C.请求 Web 页的账号
D.ASP.NET 账号

9.单项选择题你正在创建一个自定义服务器控件,并且你需要此控件支持在Visual Studio 2005设计器中使用。为此,你创建了两个类:一个是从Composite Control继承的myControl类,另一个是从Composite ControlDesigner继承的myControlDesigner类。你需要把myControl和myControlDesigner进行关联。下面那一个可以正确达到此目的?()

A.[Designer(myControlDesigner)] public class myControl: CompositeControl
B.[Designer(typeof(myControl))] public class myControlDesigner: CompositeControlDesigner
C.[Designer(myControl)] public class myControlDesigner: CompositeControlDesigner
D.[Designer(typeof(myControlDesigner))] public class myControl: CompositeControl

10.单项选择题你正在创建一个skin文件,它用来格式化Label控件的为蓝色文本、TimesNewRoman字体。你应该使用下面那一个skin文件?()

A.<asp:Label BackColor="White" ForeColor="Blue" Font-Name="Times New Roman"Font-Size="10px" />
B.<asp:Label runat="server" ID="BlueLabel" BackColor="White" ForeColor="Blue"Font-Name="Times New Roman" Font-Size="10px" />
C.<asp:Label ID="BlueLabel" BackColor="White" ForeColor="Blue" Font-Name="Times New Roman" Font-Size="10px" />
D.<asp:Label runat="server" BackColor="White" ForeColor="Blue"Font-Name="Times New Roman" Font-Size="10px" />


最新试题

You create a Web site. The Web site has many predefined roles and associated users that will be used for security purposes. You need to manage these roles and user accounts.Which tool should you use? ()

题型:单项选择题

You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort.What should you do? ()

题型:单项选择题

You are creating a composite control for capturing user address information in a Web application. You define a number of properties that the user can set at design time. You need to group these properties in the Properties dialog box. In addition, you need to ensure that when users click on a particular property, they receive a short explanation of that property. The properties are shown in the exhibit.Which two actions should you perform?()

题型:多项选择题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题

You need to turn on Tracing for a page that is not performing well. You must store the trace information in a database for reporting and trending.Which two actions should you perform?()

题型:多项选择题

You deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()

题型:单项选择题

You want to enable users of a Web application to modify the Web application's UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code.What should you do?()

题型:单项选择题

You create an intranet Web site for management of project documents. You need to enable all users to browse documents on the site. Only members of the administrators group must be ble to upload files.Which code segment of the Web.config file should you use?()

题型:单项选择题

You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider.What should you do?()

题型:单项选择题

You create a Web Form that allows users to create a new account. You add a CreateUserWizard control by using the following code segment.You need to ensure that the wizard automatically sends an e-mail message to users when they finish creating their accounts. You add a valid element to the Web.config file.Which code segment should you add to the Page_Load event?()

题型:单项选择题