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!

Tuesday, 26 September 2017

What is AJAX?

What is AJAX?

AJAX = Asynchronous JavaScript And XML.
AJAX is not a programming language.
AJAX just uses a combination of:
  • A browser built-in XMLHttpRequest object (to request data from a web server)
  • JavaScript and HTML DOM (to display or use the data)


AJAX is a misleading name. AJAX applications might use XML to transport data, but it is equally common to transport data as plain text or JSON text.


AJAX is used to create more interactive applications.