Quiz - Introduction XML


Which of the following statements are true and which are false in the case of XML?



  1. XML was designed to describe data.

    1. True
    2. False

  2. XML tags are predefined.

    1. True
    2. False

  3. XML consists of rules to identify and define different parts of the document
    .
    1. True
    2. False

  4. XML offers a standard way to add markup to documents.

    1. True
    2. False

  5. XML forms the basics to create languages like WAP and WML.

    1. True
    2. False

      Which of the statements about XML are true and which of the statements are false?


  1. XML describes its data along with its presentation.

    1. True
    2. False

  2. Client reduces the server load by sending large amount of information in one XML document to the server.

    1. True
    2. False

  3. XML uses only XSLT to be transformed to HTML.
    1. True
    2. False

  4. XML can be implemented as middle-tier for client server architectures.

    1. True
    2. False

  5. XML allows data exchange as it has no formatting instructions.

    1. True
    2. False

      Which of the statements about the structure of XML documents are true and which statements are false?


  1. XML documents are stored with .xml extension.

    1. True
    2. False

  2. Document prolog can consist of version declaration, DTD comments and processing instructions.

    1. True
    2. False

  3. XML declaration informs the processing agent about the version of XML being used.

    1. True
    2. False

  4. Root element must not be nonempty tag.

    1. True
    2. False

  5. The logical structure gives information about the elements and the order in which they are to be included in the document.

    1. True
    2. False

      Which of the characteristic are true or false accordingly when an XML document is created by an XML editor?


  1. XML syntax is colored.

    1. True
    2. False

  2. XML is not validated.
    1. True
    2. False

  3. XML parser reads the document after it is created.

    1. True
    2. False

  4. XML is transformed only via XSLT.
    1. True
    2. False

  5. XML document is edited by keeping DTD in mind.

    1. True
    2. False

      Which of the statements about XML browsers and parsers are true and which statements are false?


  1. XML parser is calculated against its speed and performance.

    1. True
    2. False

  2. XML parser checks for validity and well formed ness.

    1. True
    2. False

  3. XML parser does its work after the processor converts the document into a data structure.

    1. True
    2. False

  4. Browser displays the content directly after the parser passes the data.

    1. True
    2. False

  5. Crimson and Xerces are some of the browser.

    1. True
    2. False

      Which of the following statements are true in the case of comments and processing instructions in XML?


  1. Comments are processed by the processor.

    1. True
    2. False
  2. Comments appear only in the document prolog.

    1. True
    2. False

  3. Processing instructions are application specific.

    1. True
    2. False

  4. Processing instructions are passed to the target.

    1. True
    2. False

  5. </PITarget<instructon>/> is a processing instruction.

    1. True
    2. False

      Which of the following statements are valid for character data in XML?

  1. Character data is treated as regular text.

    1. True
    2. False

  2. Character like “>” and “&” can be used in PCDATA sections.

    1. True
    2. False

  3. Character like “>” and “&” can be used in CDATA sections.

    1. True
    2. False

  4. CDATA starts with “<[!CDATA[“and ends with”]]>”

    1. True
    2. False

  5. Parameter entities use ampersand (&) and semicolon (;) as delimiters.

    1. True
    2. False

      Which one of the following code snippets will give an output as
      “Hi,
      The test is on Wednesday.
      Regards
      Sam.
      12/2/2007”
                  1.         <?xml version="1.0" encoding="iso-8859-1"?>
      <Matter>
                  <Wish> Hi, </Wish>
                  <Body> The test in on Wednesday. </Body>
                  <Close>
                  Regards
                  Sam.
                  </Close>
                  <Date>
                  <Day>12</Day>
                  <Month>2</Month>
                  <Year>2007</Year>
                  </Date>
      </Matter>

      2.         <?xml version="1.0" encoding="iso-8859-1"?>
      <Matter>
                  <Wish> Hi, </Wish></Matter>
                  <Body> The test in on Wednesday. </Body>
                  <Close>
                  Regards
                  Sam.
                  </Close>
      <Date>
                  <Day>12</Day>
                  <Month>2</Month>
                  <Year>2007</Year>
      </Date>

                  3.         <?xml version="1.0" encoding="iso-8859-1"?>
      <Matter>
                  <Wish> Hi, </Wish>
                  <Body> The test in on Wednesday. </Body>
                  <Close>
                  Regards
                  Sam.
                  </Close>
                  <Date>
                  <Day>12</Day>
                  <Month>2</Month>
                  <Year>2007</Year>
                  </Date>

                  4.         <?xml version="1.0" encoding="iso-8859-1"?>
      <Matter>
                   Hi,
                  <Body> The test in on Wednesday. </Body>
                  <Close>
                  Regards
                  Sam.
                  </Close>
                  <Date>
                  <Day>12</Day>
                  <Month>2</Month>
                  <Year>2007</Year>
                  </Date></Matter>

      Which of the following code snippets produce an output?
                 
                  1.         <?xml version="1.0" encoding="iso-8859-1"?>
      <xml>
                  9100203845902
                  Did you understand the concept?
                  2345923-23934
      </xml>
                  2.         <?xml version="1.0" encoding="iso-8859-1"?>
      <confirmation><question>Did you understand the
      concept?</question></confirmation>
                  <sender>
                  sender : 9100203845902
                  <recipient>
                  Recipient: 2345923-23934
                  <recipient>

                  3.         <?xml version="1.0" encoding="iso-8859-1"?>
      <confirmation>
                  <sender>
                  sender : 9100203845902
                  </sender>
                  <question> Did you understand the concept? </question>
                  <recipient>
                  Recipient: 2345923-23934
                  </recipient>
      </confirmation>
      4.         <?xml version="1.0" encoding="iso-8859-1"?>
                                          Sender : 9100203845902
                                          Recipient : 2345823239
                              <confirmation><question>Did you understand the
                                     concept ?</quesion></confirmation>
Share on Google Plus

About Hà Tuấn Anh

0 nhận xét:

Đăng nhận xét