XML operations 4

Exercise 04 XML Quiz

 

For each of the following questions, please write down the answer you think is right.

Please correct answer text descriptions written in "A:" After that, not with A , B , C , D instead.

 

1. XML refers?

  .Example Markup Language

  .X-Markup Language

  .eXtensible Markup Language

  .eXtra Modern Link

答:eXtensible Markup Language

 

2. way XML data describes?

  .XML data described using XSL

  DTD used to describe the data .XML

  .XML description data described using node classes

A: XML DTD to describe the use of data

 

3. XML's goal is to replace HTML

  .error

  .correct

Answer: False

 

4. The following defines the XML version of the statement is syntactically correct?

  .<?xml version="1.0" />

  .<?xml version="1.0"?>

  .<xml version="1.0" />

答:<?xml version="1.0"?>

 

5. DTD referring to?

  .Dynamic Type Definition

  .Do The Dance

  .Document Type Definition

  .Direct Type Definition

答:Document Type Definition

 

6. This is a "good form" of files?

<?xml version="1.0"?>

<note>

<to>Tove</to>

<from>Jani</from>

<heading>Reminder</heading>

<body>Don't forget me this weekend!</body>

</note>

  .Yes

  .no

A: Yes

 

7. This is a "good form" of files?

<?xml version="1.0"?>

<to>Tove</to>

<from>Jani</from>

<heading>Reminder</heading>

<body>Don't forget me this weekend!</body>

  .Yes

  .no

A: No.

 

8. Which statement is true?

  All XML elements must be in lower case

  All XML elements must be properly closed

  All XML documents must have a DTD

  The above statements are correct

A: All XML elements must be properly closed

 

9. Which statement is true?

  .XML tags are case sensitive

  .XML document must have a root tag

  .XML elements must be properly nested

  The above statements are correct

A: The above statements are correct

 

10. XML can be left blank character

  .error

  .correct

Answer: True

 

11. This is a "good form" of files?

<?xml version="1.0"?>

<note>

<to age="29">Tove</to>

<from>Jani</from>

</note>

  .Yes

  .no

A: Yes

 

12. This is a "good form" of files?

<?xml version="1.0"?>

<note>

<to age=29>Tove</to>

<from>Jani</from>

</note>

  .Yes

  .no

A: No.

 

13. XML elements can not be empty

  .correct

  .error

Answer: False

 

14. For an XML document, which of the following names is wrong?

  .<Note>

  .<h1>

  .<1dollar>

  The above three are incorrect

A: <1dollar>

 

15. For an XML document, which of the following names is wrong?

  .<NAME>

  .<age>

  .<first name>

  The above three are incorrect

答:<first name>

 

16. For an XML document, which of the following names is wrong?

  .<7eleven>

  .<xmldocument>

  .<phone number>

  The above three are incorrect

A: The above three are incorrect

 

17. You must use quotes around attribute values ​​of XML

  .correct

  .error

Answer: True

 

18. XSL referring to?

  .eXtra Style Language

  .eXpandable Style Language

  .eXtensible Style Listing

  .eXtensible Stylesheet Language

答:eXtensible Stylesheet Language

 

19. Which of the following methods can reference a style sheet called "mystyle.xsl" correctly?

  .<link type="text/xsl" href="mystyle.xsl" />

  .<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

  .<stylesheet type="text/xsl" href="mystyle.xsl" />

答:<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

 

20 correct syntax for a specific part of the XML parser to ignore the XML document is:

  .<xml:CDATA[ Text to be ignored ]>

  .<PCDATA> Text to be ignored </PCDATA>

  .<![CDATA[ Text to be ignored ]]>

  .<CDATA> Text to be ignored </CDATA>

答:<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>

Published 58 original articles · won praise 22 · views 9858

Guess you like

Origin blog.csdn.net/zsd0819qwq/article/details/103792561