Wednesday, 27 September 2017

W3Schools XML Quiz

W3Schools XML Quiz

XML QUIZPoints: 19 out of 25
1. What does XML stand for?
You answered:
eXtensible Markup Language
 Correct Answer!

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

XML uses a DTD to describe the data. 

Correct Answer!

3. XML's goal is to replace HTML
You answered:
False
 Correct Answer!

4. What is the correct syntax of the declaration which defines the XML version?
You answered:
<?xml version="1.0"?>
 Correct Answer!

5. What does DTD stand for?
You answered:
Document Type Definition
 Correct Answer!

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>
You answered:
Yes
 Correct Answer!

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>
You answered:
No
 Correct Answer!

8. Which statement is true?
You answered:
All XML elements must be properly closed
 Correct Answer!

9. Which statement is true?
You answered:
XML documents must have a root tag
 Wrong Answer!

10. XML preserves white spaces
You answered:
True
 Correct Answer!

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

<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>
You answered:
Yes
 Correct Answer!

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

<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>
You answered:
No
 Correct Answer!

13. XML elements cannot be empty
You answered:
False
 Correct Answer!

14. Which is not a correct name for an XML element?
You answered:
<1dollar>
 Correct Answer!

15. Which is not a correct name for an XML element?
You answered:
<first name>
 Correct Answer!

16. Which is not a correct name for an XML element?
You answered:
<phone number>
 Wrong Answer!

17. XML attribute values must always be enclosed in quotes
You answered:
True
 Correct Answer!

18. What does XSL stand for?
You answered:
eXtensible Stylesheet Language
 Correct Answer!

19. What is a correct way of referring to a stylesheet called "mystyle.xsl" ?
You answered:
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
 Correct Answer!

20. For the XML parser to ignore a certain section of your XML document, which syntax is correct?
You answered:
<![CDATA[ Text to be ignored ]]>
 Correct Answer!

21. Which statement is true?
You answered:
Attributes must occur in defined order
 Wrong Answer!

22. What are XML entities used for?
You answered:
Entities define shortcuts to standard attributes
 Wrong Answer!

23. Which of the following XML fragments is well-formed?
You answered:
<customer id=3456><name>John Smith</name></customer>
 Wrong Answer!

24. What is an XML instance?
You answered:
An XML document
 Correct Answer!

25. Which XML DOM object represents a node in the node tree?
You answered:
The node object
 Correct Answer!

1 comment:

  1. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.Ruby on Rails Online Course India

    ReplyDelete