These Questions are copied from

Preview:

Citation preview

These Questions are copied fromhttp://www.w3schools.com

XML QUIZ http://www.w3schools.com

1. What does XML stand for?

a) eXtensible Markup Language

b) eXtra Modern Link c) Example Markup

Language d) X-Markup Language

2. There is a way of describing XML data, how?

a) XML uses XSL to describe data

b) XML uses a DTD to describe the data

c) XML uses a description node to describe data

3. XML's goal is to replace HTML

a) False b) True

4. What is the correct syntax of the declaration which defines the XML version?

a) <?xml version="1.0" /> b) <xml version="1.0" /> c) <?xml version="1.0"?>

5. What does DTD stand for?

a) Document Type Definition b) Dynamic Type Definition c) Direct Type Definition d) Do The Dance

6. Is this a "well formed" XML document?

<?xml version="1.0"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>

a) Yes b) No

7. Is this a "well formed" XML document?

<?xml version="1.0"?><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body>

a) No b) Yes

8. Which statement is true?

a) All XML documents must have a DTD

b) All the statements are true

c) All XML elements must be properly closed

d) All XML elements must be lower case

XML QUIZ http://www.w3schools.com

9. Which statement is true?

a) XML tags are case sensitive

b) XML documents must have a root tag

c) All the statements are true

d) XML elements must be properly nested

10. XML preserves white spaces

a) False b) True

11. Is this a "well formed" XML document?

<?xml version="1.0"?><note><to age="29">Tove</to><from>Jani</from></note>

a) Yes b) No

12. Is this a "well formed" XML document?

<?xml version="1.0"?><note><to age=29>Tove</to><from>Jani</from></note>

a) Yes b) No

13. XML elements cannot be empty

a) False b) True

14. Which is not a correct name for an XML element?

a) All 3 names are incorrect b) <1dollar> c) <h1> d) <Note>

15. Which is not a correct name for an XML element?

a) <NAME> b) All 3 names are incorrect c) <age> d) <first name>

16. Which is not a correct name for an XML element?

a) <7eleven> b) All 3 names are incorrect c) <xmldocument> d) <phone number>

17. XML attribute values must always be enclosed in quotes

a) True b) False

18. What does XSL stand for?

a) eXtensible Style Listing b) eXpandable Style

Language c) eXtensible Stylesheet

Language d) eXtra Style Language

19. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

a) <stylesheet type="text/xsl" href="mystyle.xsl" /> b) <link type="text/xsl" href="mystyle.xsl" /> c) <?xml-stylesheet type="text/xsl" href="mystyle.xsl"

?>

20. For the XML parser to ignore a certain section of your XML document, which syntax is correct?

a) <CDATA> Text to be ignored </CDATA> b) <xml:CDATA[ Text to be ignored ]> c) <PCDATA> Text to be ignored </PCDATA> d) <![CDATA[ Text to be ignored ]]>

Recommended