c#每日一题(十四)

VBDN 2005-04-19 09:25:11
You have added a new Web page to your Web application to be used by all your suppliers.You need to create an XmlDocument object for use in this page.
Which of the following procedures will create an XmlDocument object in the newly added Web page?
(Each choice describes a complete solution.)(Select all choices that are correct.)
A.Create the object with the line Dim xmlDoc As System.Xml.XmlDocument = CreateObject("XmlDocument").
B.Create the object with the line Dim xmlDoc As System.Xml.XmlDocument = CreateObject("System.Xml.XmlDocument").
C.Add the line Imports Xml to the top of file.
Create the object with the line Dim xmlDoc as XmlDocument = New XmlDocument().
D.Create the object with the line Dim xmlDoc As System.Xml.XmlDocument = New System.Xml.XmlDocument().
E.Create the object with the line Dim xmlDoc as Object = New XmlDocument().
F.Add the line Imports System.Xml to the top of the file.
Create the object with the line Dim xmlDoc as XmlDocument =New XmlDocument().
...全文
289 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
rib06 2005-04-22
  • 打赏
  • 举报
回复
哦,这样啊。把最关键的最后一句翻译一下吧:
createObject函数是用来创建COM对象实例的
winstarr 2005-04-22
  • 打赏
  • 举报
回复
在这里 ,CreateObject 不能用?
VBDN 2005-04-22
  • 打赏
  • 举报
回复
为什么B是错误的呢?请看下边原题注释:
You can create an XML document by creating an instance of the System.Xml.Xmldocument class.You can explicitly include the System.Xml namespace in the object creation code,or you can import the namespace by using the imports keyword at the top of the page.You must use the fully qualified namespace,System.Xml,with the imports statement.
The createObject function is used to create instances of COM objects.
VBDN 2005-04-22
  • 打赏
  • 举报
回复
参考答案:DF
rib06 2005-04-21
  • 打赏
  • 举报
回复
呵呵 又开始啦 还是我来翻译吧~~
假设你向自己的一个Web应用中添加了一个新的Web页,而你所有的供应商都会用到这个Web应用。你需要在这个新页面中创建一个XmlDocument对象。请问下面的选项中哪个可以正确的在新页中把这个XmlDocument对象创建起来?
(每个选项都是一个完整的解决方案,选择所有你认为正确的选项)
A.这样创建对象:Dim xmlDoc As System.Xml.XmlDocument = CreateObject("XmlDocument").
B.这样创建对象:Dim xmlDoc As System.Xml.XmlDocument = CreateObject("System.Xml.XmlDocument").
C.在文件最上面增加一行 Imports Xml
然后这样创建: Dim xmlDoc as XmlDocument = New XmlDocument().
D.这样创建对象:Dim xmlDoc As System.Xml.XmlDocument = New System.Xml.XmlDocument().
E.这样创建对象:Dim xmlDoc as Object = New XmlDocument().
F.在文件最上面增加一行 Imports System.Xml
然后再这样创建: Dim xmlDoc as XmlDocument =New XmlDocument().

这次翻的比较烂,大家凑合看吧,应该没有强奸题意~~
我怎么觉得B D F都行啊
grf601006617 2005-04-21
  • 打赏
  • 举报
回复
我英语还很差~看不懂~
tammy2net 2005-04-21
  • 打赏
  • 举报
回复
...............
conan19771130 2005-04-21
  • 打赏
  • 举报
回复
有点意思F
kuzhuxuan 2005-04-21
  • 打赏
  • 举报
回复
发错了 F
kuzhuxuan 2005-04-21
  • 打赏
  • 举报
回复
C
lyshrine 2005-04-21
  • 打赏
  • 举报
回复
顶!
bitsbird 2005-04-21
  • 打赏
  • 举报
回复
D,F
631799 2005-04-21
  • 打赏
  • 举报
回复
up
VBDN 2005-04-20
  • 打赏
  • 举报
回复
这可是MCAD70-315认证的原题啊!没有人想考么?
wangasp 2005-04-19
  • 打赏
  • 举报
回复
还是不要用英文了吧
多出点题目,让大家都学习一下!

110,533

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧