XML MCQ : Point Out Errors (Multiple Choice Questions)
Question 1 |
Point out the error in the following xml -
<book category="Web"> <bname>XML Tutorials</bname> <pages>100</pages> <price>$300.00</Price> </book>
No Case Sensitive | |
Not having Closing Tag | |
None of these | |
No Nesting of Elements |
Question 1 Explanation:
<price>$300.00</Price>should be
<price>$300.00</price>
Question 2 |
Point out the error in following XML document -
<messages> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <messages>
No Attribute present | |
No Case Sensitive Tags | |
No Corresponding Closing Tag | |
None of these |
Question 3 |
Point out the error in the following xml document -
<?xml version="1.0" encoding="ISO-8859-1"?> <messages>Sample Message<messages> <messages>Sample Message<messages> <messages>Sample Message<messages>
Must have DTD | |
None of these | |
Does not have Attribute | |
Must have One Root Node |
Question 4 |
Point out the errors in the following xml document -
<notes> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> </notes>
XML Documents Must Have a Root Element | |
XML Elements Must be Properly Nested | |
None of these | |
XML Attributes must be quoted |
Question 5 |
Is Following XML syntax is error free ?
<b><i>XML</b></i>
Yes | |
No |
Question 5 Explanation:
XML Elements Must be Properly Nested
There are 5 questions to complete.