IT认证考试网

设为首页

收藏本站

首页 >> IT认证考试网 >> 微软认证考试 >> 微软认证试题 >> microsoft认证模拟试题 >> 正文

微软MCSD.NET 70-310 考题(1-10)

·上一篇文章:   &  ·下一篇文章:

来源:   点击数:     录入时间:07-08-31 10:50:45

1.You are creating an XML Web service named CustomerService. This service receives an XML file of customer information in the following format:  <CustomerData>       <Customers>               <CustomerID>1234</CustomerID>               <CompanyName>Adventure Works</CompanyName>       </Customers>       <Customers>               <CustomerID>2345</CustomerID>               <CompanyName>Coho Winery</CompanyName>       </Customers> </CustomerData>  You want to parse the XML file to build a flat file that will be used by another application. The flat file should be in the following format:    CustomerID=1234   CompanyName=Adventure Works   CustomerID=2345 CompanyName=Coho Winery  You write the following code:     Dim myXMLDoc As New XmlDocument()     myXMLDoc.Load("C:\TableSchemaXML.xml")     Dim myRootNode As XmlNode = myXMLDoc.FirstChild     Dim customerOutput As String     Dim curNode As XmlNode Dim i As Integer  You need to write the code that will parse the document and build the customerOutput string that will be used to write each row in the file.  Which code segment should you use? A: Dim myNodeList As XmlNodeList = _myRootNode.SelectNodes("/CustomerData/Customers")For Each curNode In myNodeListIf curNode.HasChildNodes ThencustomerOutput = ""For i = 0 To curNode.ChildNodes.Count ?1customerOutput = curNode.ChildNodes(i).Name & _"=" + curNode.ChildNodes(i).InnerText' Code to write the output file goes here.Next iEnd IfNextB: Dim myNodeList As XmlNodeList = _myRootNode.SelectNodes("/CustomerData/Customers")For Each curNode In myNodeListIf curNode.HasChildNodes ThencustomerOutput = ""For i = 0 To curNode.ChildNodes.Count ?1customerOutput = curNode.ChildNodes(i).Name & _"=" + curNode.ChildNodes(i).Value' Code to write the output file goes here.Next iEnd IfNextC: Dim myNodeList As XmlNodeList = _myRootNode.SelectNodes("/Customers")For Each curNode In myNodeListIf curNode.HasChildNodes ThencustomerOutput = ""For i = 0 To curNode.ChildNodes.Count ?1customerOutput = curNode.ChildNodes(i).Name & _"=" + curNode.ChildNodes(i).InnerText' Code to write the output file goes here.Next iEnd IfNextD: Dim myNodeList As XmlNodeList = _myRootNode.SelectNodes("/Customers")For Each curNode In myNodeListIf curNode.HasChildNodes ThencustomerOutput = ""For i = 0 To curNode.ChildNodes.Count ?1customerOutput = _curNode.ChildNodes(i).Attributes(0).value + "=" &_curNode.ChildNodes(i).Attributes(1).Value' Code to write the output file goes here.Next iEnd IfNextCorrect Answers:  A 2.You are creating an XML Web service named WeatherService that provides the current weather conditions for cities around the world. Your development cycle includes three stages: development, testing, and production. In each stage, WeatherService will be deployed on a different server. For testing, you create an ASP.NET application named WeatherTest. To WeatherTest, you add a Web reference to WeatherService. You then build a user interface and add the necessary code to test the service. The WeatherService interface will not change between testing and deployment. You want to ensure that you do not have to recompile WeatherTest every time WeatherService is moved from one server to another. What should you do? A: Each time WeatherService is moved, set the URL property of the generated proxy class to the new location.B: Each time WeatherService is moved, set the Web Reference URL property of the generated proxy class to the new location.C: Set the URLBehavior property of the generated proxy class to dynamic. Each time WeatherService is moved, update the appropriate key inthe Web.config file to indicate the new location.D: Take the location of WeatherService as input to WeatherTest, and set the Proxy property of all proxy class instances to that location.Correct Answers:  C 3.You are troubleshooting a Visual Studio .NET application that was developed by a former colleague. You find the following code segment within a large assembly:      Dim theElement As XmlElement     Dim anotherElement As XmlElement     Dim doc As New XmlDocument()     Dim theDecl As XmlDeclaration     theDecl = doc.CreateXmlDeclaration("1.0", Nothing, Nothing)     doc.AppendChild(theDecl)     theElement = doc.CreateElement("Library")     doc.AppendChild(theElement)     theElement = doc.CreateElement("Book")     theElement.SetAttribute("type", "Mystery")     anotherElement = doc.CreateElement("Title")     anotherElement.InnerText = "Book Title"     anotherElement.AppendChild(theElement)     doc.DocumentElement.AppendChild(theElement)  Which XML output is produced by this code segment? A: <?xml version="1.0"?><Library />B: <?xml version="1.0"?><Library><Book type="Mystery" /></Library>C: <?xml version="1.0"?><Library><Book type="Mystery"><Title>Book Title</Title></Book></Library>D: <?xml version="1.0"?><Library><Title>Book Title<Book type="Mystery" /></Title>

本新闻共3页,当前在第1页  1  2  3  


责任编辑:admin 文章作者:
 
最新热点 最新推荐 相关文章
·Cisco试题库:ccna最新真题(下)(1)-Cisco认
·CCNA,CCNP考试界面
·微软MCITP 70-431 认证考试考题
·CISCO出版认证书籍详细介绍
·OracleDBA创建数据库试题精选-Oracle认证考
·Cisco试题库:ccna最新真题(下)(3)-Cisco认
·CCNP学习考试心得
·OracleDBA存储管理试题选-Oracle认证考试
·MCSE--微软认证系统工程师-(一)-Microso
·Cisco试题库:ccna最新真题(下)(4)-Cisco认
·主流CCNA实验模拟器介绍(2004版)
·CCNA教程之七层模型详解
·安装配置——路由器的硬件连接一(组图) 

·EMC e20-095 认证考试题
·EMC e20-580 认证试题
·EMC E20-535认证考试试题
·EMC E20-860 认证考试试题
·EMC E20-870 认证考题
·Nortel 920-139 考试题库
·Nortel 920-140 考试题库
·Nortel 920-158 考试题库
·Nortel 920-161 考试题库
·Nortel 920-162 考试题库
·思科 646-561
·思科 642-564
·思科 642-567

中搜索
微软MCSD.NET 70-310 考题(1-10)
中搜索
微软MCSD.NET 70-310 考题(1-10)
中搜索
微软MCSD.NET 70-310 考题(1-10)
中搜索
微软MCSD.NET 70-310 考题(1-10)
中搜索
微软MCSD.NET 70-310 考题(1-10)
中搜索
微软MCSD.NET 70-310 考题(1-10)
其他认证试题
SUN认证考试  SUN认证资讯
HP认证考试
ibm认证考试
Oracle认证考试  Oracle经验交流  Oracle综合辅导  Oracle试题库  应用技术辅导  报考指南  Oracle资讯
思科认证考试  Cisco认证报考指南  Cisco认证心得体会  思科认证试题  Cisco认证综合指导  思科CCIE认证考试  思科CCNP认证考试  思科CCNA认证考试  思科认证考试动态
微软认证考试  微软认证试题  microsoft认证模拟试题  microsoft认证历年真题  Microsoft认证心得技巧  Microsoft综合辅导  微软认证考试辅导  微软认证MCSD指导  微软认证MCAD指导  微软认证MCT指导  微软认证MCDBA指导  微软认证MCSA指导  微软认证MCDST指导  微软认证MCP指导  微软认证MCSE指导  Microsoft认证报考指南  微软认证考试动态
设为首页 关于我们 广告服务 联系我们 网站地图 加入收藏 网站声明 友情链接 考试认证论坛 意见反馈
Copyright©2007-2008 www.mbsexam.com All Rights Reserved.