多选题You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class. XmlElement root = doc.D

题目
多选题
You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class. XmlElement root = doc.DocumentElement; XmlNodelist nodes = root.SelectNodes(“books/book”); Which additional two code segments can you use to achieve this goal? ()
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”;}


相似考题
更多“You load an XmlDocument named doc with the following XML.”相关问题
  • 第1题:

    Which of the following answer choices are correct characteristics of named access list?()

    A. You can delete individual statements in a named access list

    B. Named access lists require a numbered range from 1000 to 1099.

    C. Named access lists must be specified as standard or extended.

    D. You can use the ip access-list command to create named access lists.

    E. You cannot delete individual statements in a named access list.

    F. You can use the ip name-group command to apply named access lists.


    参考答案:A, C, D

  • 第2题:

    Which of the following answer choices are correct characteristics of named access list?()

    • A、You can delete individual statements in a named access list
    • B、Named access lists require a numbered range from 1000 to 1099.
    • C、Named access lists must be specified as standard or extended.
    • D、You can use the ip access-list command to create named access lists.
    • E、You cannot delete individual statements in a named access list.
    • F、You can use the ip name-group command to apply named access lists.

    正确答案:A,C,D

  • 第3题:

    management has asked bob to post an introductory welcome page when notes users first open the video application in which one of the following places should bob put the welcome message?()

    • A、 in a document named welcome 
    • B、 in the  database about doc 
    • C、 in the  database using doc 
    • D、 in the first page in the database design

    正确答案:B

  • 第4题:

    You are the network administrator for The network consists of a single Active Directory domain All network servers run Windows Server 2003, and all client computers run Windows XP Professional. All users in the sales department are members of a group names Sales. Tess, a member of Sales, creates a custom document named Salescustom.doc. She is responsible for making all required changes to this file. Tess places the file in a shared folder named TessDocs on a member server named TestKingA. Then she goes on vacation. When users from the sales department try to open Salescustom.doc, they receive the following error message: 'Access is denied'. You log on to the console of TestKingA and try to open Salescustom.doc. You receive the same error message. You need to ensure that members of Sales have read-only access to Salescustom.doc. You must not affect Tess's permissions on Salescustom.doc or on any other files in TessDocs. You must not grant access to Salescustom.doc to any other users. First, you log on to TestKingA as an administrator. What should you do next?()

    • A、Take ownership of TessDocs and select the Replace owner on subcontainers and objects check box. Configure the NTFS permissions to assign the Allow - Modify permissions on the folder to Sales.
    • B、Take ownership of Salescustom.doc.Configure the NTFS permissions to assign the Allow - Create Files/Write Data permissions on the file to Sales.
    • C、Take ownership of Salescustom.doc. Configure the NTFS permissions to assign the Allow - Read permissions on the file to Sales.
    • D、Take ownership of TessDocs and select the Replace owner on subcontainers and Object check box. Configure the NTFS permissions to assign the Allow - Read permissions on the folder to Sales.

    正确答案:C

  • 第5题:

    You load an XmlDocument named doc with the following XML. World Atlas Dictionary You need to use an XPath query string to select the two book nodes. Which code segment should you use? ()

    • A、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”);
    • B、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”);
    • C、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“bookstore//book”);
    • D、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“books/book”);

    正确答案:D

  • 第6题:

    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

  • 第7题:

    Your Web site processes book orders. One of the application methods contains the following code segment. XmlDocument doc = newXmlDocument( ); doc.LoadXml(“10”+” Dictionary”); You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. ()

    • A、XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);
    • B、XmlNode root = dec.DocumentElement;root.RemoveChild(root.SelectSingleNode(“discount”));
    • C、doc.RemoveChild(doc.FirstChild);
    • D、doc.DocumentElement.RemoveChild(doc.FirstChild);

    正确答案:A,B

  • 第8题:

    单选题
    You are creating a Windows Forms application by using the .NET Framework 3.5 The application is used by a financial service provider.You discover that the service provider transfers large amounts of data by using XML. You need to read and validate the XMLdocuments in the most time efficient manner.Which technology should you use?()
    A

    The XmlReader class

    B

    The XmlDocument class

    C

    The XmlResolver class

    D

    The LINQ to XML method


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    You are creating an ASP.NET Web site. The site has a master page named Custom.master. The code-behind file for Custom.master contains the following code segment.Partial Public Class Custom  Inherits System.Web.UI.MasterPagePublic Property Region As String    Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadEnd SubEnd Class You create a new ASP.NET page and specify Custom.master as its master page.You add a Label control named lblRegion to the new page.  You need to display the value of the master pages Region property in lblRegion.What should you do? ()
    A

    Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Parent  lblRegion.Text = custom.Region

    B

    Add the following code segment to the Page_Load method of the page code-behind file. Dim custom As Custom = Me.Master  lblRegion.Text = custom.Region

    C

    Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Page.FindControl(lblRegion) lblRegion.Text = Me.Region

    D

    Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file. Dim lblRegion As Label = Master.FindControl(lblRegion) lblRegion.Text = Me.Region


    正确答案: C
    解析: 暂无解析

  • 第10题:

    多选题
    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)


    正确答案: C,B
    解析: 暂无解析

  • 第11题:

    单选题
    You load an XmlDocument named doc with the following XML. World Atlas Dictionary You need to use an XPath query string to select the two book nodes. Which code segment should you use? ()
    A

    Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(.)

    B

    Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(book)

    C

    Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(bookstore//book)

    D

    Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(books/book)


    正确答案: B
    解析: 暂无解析

  • 第12题:

    多选题
    You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class.Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book")Which additional two code segments can you use to achieve this goal?()
    A

    Dim node As XmlNodeFor Each node In nodes node.Attributes(0).Value = NANext node

    B

    Dim node As XmlNodeFor Each node In nodes node.Attributes(1).Value = NANext node

    C

    Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode(/genre) genre.Value = NANext node

    D

    Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode(@genre) genre.Value = NANext node

    E

    Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode(genre) genre.Value = NANext node


    正确答案: A,D
    解析: 暂无解析

  • 第13题:

    You are loading in the winter in Albany,N.Y.,for a voyage to a port governed by the tropical load line mark. Which of the following statements is TRUE? (Hydrometer reading in Albany is 1.000)

    A.You may not exceed the winter load line mark when you finish loading except for the burnout to sea

    B.You may calculate the burnout necessary to reach the tropical zone and load extra cargo to compensate

    C.The freshwater allowance and burnout to sea may be subtracted from the required freeboard in Albany

    D.You may load to the winter mark less the fresh water allowance if you will be at the tropical mark upon arrival in the tropical zone


    正确答案:C

  • 第14题:

    You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class.Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book")Which additional two code segments can you use to achieve this goal?()

    • A、Dim node As XmlNodeFor Each node In nodes node.Attributes(0).Value = "NA"Next node
    • B、Dim node As XmlNodeFor Each node In nodes node.Attributes(1).Value = "NA"Next node
    • C、Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("/genre") genre.Value = "NA"Next node
    • D、Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("@genre") genre.Value = "NA"Next node
    • E、Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("genre") genre.Value = "NA"Next node

    正确答案:A,D

  • 第15题:

    Which two statements are true regarding the usage of the SQL*Loader utility()

    • A、You can load data into multiple tables during the same load session.
    • B、You can load data from multiple files to a table during the same load session.
    • C、You cannot perform selective data loading based on the values available in the records.
    • D、You can use an export file generated by the EXPDP utility as an input data file to load the data.
    • E、You can load data only if the input file is available on the disk and tape but not in a named pipes.

    正确答案:A,B

  • 第16题:

    You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master.You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. Protected Sub Page_Load(ByVal sender As Object,ByVal e As System.EventArgs) Handles Me.LoadDim s As String = Master.CityNameEnd Sub  You need to ensure that TestPage.aspx can access the CityName property. What should you do?()

    • A、Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath="~/TestMaster.master" %> 
    • B、Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath="~/TestMaster.master" %> 
    • C、Set the Strict attribute in the @ Master directive of the TestMaster.master page to true. 
    • D、Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true. 

    正确答案:A

  • 第17题:

    You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code. On TestUserControl.ascx, you need to add a read-only member named CityName to return the value "New York". You also must add code to TestPage.aspx to read this value. Which two actions should you perform?()

    • A、Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return "New York"; } } 
    • B、Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = "New York"; 
    • C、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; } 
    • D、Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes["CityName"]; } 

    正确答案:A,C

  • 第18题:

    You are creating a Windows Forms application by using the .NET Framework 3.5 The application is used by a financial service provider.You discover that the service provider transfers large amounts of data by using XML. You need to read and validate the XMLdocuments in the most time efficient manner.Which technology should you use?()

    • A、The XmlReader class
    • B、The XmlDocument class
    • C、The XmlResolver class
    • D、The LINQ to XML method

    正确答案:A

  • 第19题:

    单选题
    你正在创建一个生成 XML 文档的 ASP.NET Web 应用。你需要为文档增加一个 XML 声明。下面那个代码能够生成如下的 XML 声明?()
    A

    XmlDocument doc = new XmlDocument();doc.Load(subscribers.xml);XmlDeclaration xmldecl = doc.CreateXmlDeclaration(encoding, Unicode);

    B

    XmlDocument doc = new XmlDocument();doc.Load(subscribers.xml); XmlDeclaration xmldecl = doc.CreateXmlDeclaration(1.0, null, yes);

    C

    XmlDocument doc = new XmlDocument(); doc.Load(subscribers.xml); XmlDeclaration xmldecl = doc.CreateXmlDeclaration(1.0, Unicode, yes);

    D

    XmlDocument doc = new XmlDocument(); doc.Load(subscribers.xml); XmlDeclaration xmldecl = doc.CreateXmlDeclaration(1.0, Unicode);


    正确答案: B
    解析: 暂无解析

  • 第20题:

    单选题
    You are implementing an ASP.NET application that includes a page named TestPage.aspx. TestPage.aspx uses a master page named TestMaster.master. You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public property named CityName. protected void Page_Load(object sender, EventArgs e) { string s = Master.CityName; }  You need to ensure that TestPage.aspx can access the CityName property. What should you do?()
    A

    Add the following directive to TestPage.aspx. <%@ MasterType VirtualPath=~/TestMaster.master %><%@ mastertype="" virtualpath="~/TestMaster.master">

    B

    Add the following directive to TestPage.aspx. <%@ PreviousPageType VirtualPath=~/TestMaster.master %><%@ previouspagetype="" virtualpath="~/TestMaster.master">

    C

    Set the Strict attribute in the @ Master directive of the TestMaster.master page to true.

    D

    Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.


    正确答案: A
    解析: 暂无解析

  • 第21题:

    多选题
    You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class. XmlElement root = doc.DocumentElement; XmlNodelist nodes = root.SelectNodes(“books/book”); Which additional two code segments can you use to achieve this goal? ()
    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”;}


    正确答案: B,A
    解析: 暂无解析

  • 第22题:

    单选题
    You have a computer that runs Windows XP Professional. Two users named User1 and User2 share the computer. User1 and User2 encrypt files on the computer. User1 encrypts a file named file1. doc. You need ensure that both User1 and User2 can view the contents of file1. doc. What should you instruct User1 to do?()
    A

    Add the certificate of User2 to file1. doc. 

    B

    Assign User2 the Full Control NTFS permission on file1. doc. 

    C

    Copy file1. doc the %systemroot%/documents and settings/all users/ folder.

    D

    Move file1. doc to the %systemroot%/documents and settings/all users/ folder. 


    正确答案: C
    解析: 暂无解析

  • 第23题:

    多选题
    Your Web site processes book orders. One of the application methods contains the following code segment. XmlDocument doc = newXmlDocument( ); doc.LoadXml(“10”+” Dictionary”); You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. ()
    A

    XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);

    B

    XmlNode root = dec.DocumentElement;root.RemoveChild(root.SelectSingleNode(“discount”));

    C

    doc.RemoveChild(doc.FirstChild);

    D

    doc.DocumentElement.RemoveChild(doc.FirstChild);


    正确答案: C,D
    解析: 暂无解析

  • 第24题:

    单选题
    Which of the following SQL*Loader parameters enables you to load a specified number of records stored in the data file?()
    A

    ROWS

    B

    SKIP

    C

    LOAD

    D

    BINDSIZE


    正确答案: A
    解析: 暂无解析