Your Web site processes book orders. One of the application methods contains the following

题目

Your Web site processes book orders. One of the application methods contains the following code segment.Dim doc As New XmlDocument()doc.LoadXml("10" &_"Dictionary")You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? ()

A. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.FirstChild)

B. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.SelectSingleNode("discount"))

C. doc.RemoveChild(doc.FirstChild)

D. doc.DocumentElement.RemoveChild(doc.FirstChild)

参考答案和解析
参考答案:A, B
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

您在运行WindowsServer2008的服务器上安装了Web服务器(IIS)角色。您在该Web服务器上配置了名为contoso.com的网站,以及名为Acctg的Web应用程序。Web服务器的磁盘空间用尽。您将Acctg移至Web服务器上的另一个驱动器。下表显示了当前应用程序配置。用户报告他们无法访问Acctg。您需要使用户能访问Acctg。应该在服务器上运行什么命令?()

A.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:d:\Acctg

B.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:f:\Acctg

C.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:d:\Acctg

D.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:f:\Acctg


参考答案:D

第2题:

WhatisthenameoftheWebLogicspecificdeploymentdescriptorofJavaEnterpriseApplication?()

A.application.xml

B.weblogic.xml

C.web.xml

D.weblogic-application.xml

E.config.xml


参考答案:B

第3题:

下面( )文件负责处理Application_Start、Application_End、Session_Start和Session_End等事件。

A.Web.config

B.Config.asax

C.Global.asax

D.Global.inc


正确答案:C

第4题:

1、当有用户请求 Web页面时,会触发()事件?

A.Application_Start()

B.Session_Start()

C.Application_End()

D.Session_End()


Session_Start()

第5题:

3、在本地站点中有如下两文件 G:\site\other\index.html G:\site\web\article\01.html index.htm要想链接到01.html这个文件,正确的链接路径应该是:

A.href=“01.html”

B.href=“web/article/01.html”

C.href=“../web/article/01.html”

D.href=“../../web/article/01.html”


href=“../web/article/01.html”

第6题:

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

A.Application_BeginRequest

B.Application_End

C. Application_Start

D.Application_EndRequest


参考答案:B

第7题:

How many books do you have? I have ______ book .That's ______ English book.

A、a,an

B、a,one

C、on,an

D、one,one


参考答案: A

第8题:

You’re going to have a quiz ( )by another two in the ( )month.

A. followed,followed

B. followed,following

C. following,followed

D. following,following


参考答案:B

第9题:

下面选项中,创建Servlet类后需要在哪个配置文件中进行配置()。

A.web-config.xml

B.application.xml

C.config.xml

D.web.xml


D

第10题:

当有用户请求 Web页面时,会触发()事件?

A.Application_Start()

B.Session_Start()

C.Application_End()

D.Session_End()


Application_Start()