test de position XML

Test de Positionnement

Question

Which of the following correctly described a feature of XML? Select all that apply.

  1. Element names that can be used in an XML document are designated in the XML specification
  2. An XML document can be written as text data
  3. XML documents are excellent for long-term storage and data reusability
  4. When creating an XML document, an XML parser must be used
  • ( + )Solution
Question

Which of the following is an API for accessing XML documents? Select all that apply.

  1. SAX
  2. DOM
  3. SOAP
  4. XPath
  • ( + )Solution
Question

Select which of the following is an "element" in the XML document below.

XML Master Basic

  1. <book>
  2. </book>
  3. <book></book>
  4. <book>XML Master Basic</book>
  • ( + )Solution
Question

Select which of the following XML documents is a well-formed XML document.

  1. <book1>
    <isbn>1234567890</isbn>
    <name>XML Master Basic >2006&lt;</name>
    </book1>
  2. <book1>
    <Isbn>1234567890</isbn>
    <Name>XML Master Basic &gt;2006&lt;</Name>
    </book1>
  3. <1_book>
    <isbn>1234567890</isbn>
    <name>XML Master Basic>2006<</name>
    </1_book>
  4. <book>
    <isbn>1234567890
    <name>
    </isbn>XML Master Basic>2006&lt;
    </name>
    </book>
  • ( + )Solution
Question

Select which of the following correctly describes the namespace to which the "ProductInformation" element belongs, given the XML Document "product.xml" below.

[product.xml]
<?xml version="1.0" ?>
<inf:ProductInformationxmlns:inf="urn:product:Info"
      xmlns:stk="urn:product:Stock">
  <inf:ProductNameCode="C00001">Computer</inf:ProductName>
  <inf:PriceUnits="\">250000</inf:Price>
  <stk:VolumeUnits="Units">200</stk:Volume>
</inf:ProductInformation>

  1. A.urn:product:Info
  2. urn:product:Stock
  3. urn:product:Info、urn:product:Stock
  4. There is no namespace to which the "ProductInformation" element belongs
Question

Select which of the following correctly describes the namespace to which the "Code" attribute of the "ProductName" element belongs, given the XML Document "stock.xml" below.

[stock.xml]
<?xml version="1.0" ?>
<stk:InventoryInfo xmlns:stk="urn:product:Stock"
        xmlns:inf="urn:product:Info">
    <stk:ProductName inf:Code="X00101">Notebook PC</stk:ProductName>
    <stk:Price>300000</stk:Price>
    <stk:Volume>500</stk:Volume>
</stk:InventoryInfo>

  1. urn:product:Stock
  2. urn:product:Info
  3. urn:product:Stock、urn:product:Info
  4. There is no namespace to which the "Code" attribute belongs
  • ( + )Solution
Question

Select which of the following correctly describes the namespace to which the "Units" attribute of the "Price" element belongs, given the XML Document "sales.xml" below.

[sales.xml]
<?xml version="1.0" ?>
<SalesInfo xmlns="urn:product:Details"
          xmlns:sls="urn:product:Sales">
    <ProductName Code="C00001">Computer</ProductName>
    <Price Units="$">2500</Price>
    <Volume Units="Units">200</Volume>
</SalesInfo>

  1. urn:product:Details
  2. urn:product:Sales
  3. urn:product:Details、urn:product:Sales
  4. There is no namespace to which the "Units" attribute of the "Price" element belongs
  • ( + )Solution
Question

Select which of the following correctly describes the namespace to which the "ProductName" element belongs, given the XML Document "product.xml" below.

[product.xml]
<?xml version="1.0" ?>
<ProductInfo xmlns="urn:product:Info"
          xmlns:stk="urn:product:Stock">
    <ProductName Code="C00001" xmlns="">Computer</ProductName>
    <Price>250000</Price>
    <Volume>200</Volume>
</ProductInfo>

  1. urn:product:Info
  2. urn:product:Stock
  3. urn:product:Info、urn:product:Stock
  4. There is no namespace to which the "ProductName" element belongs
  • ( + )Solution
Question
Question