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>
A
No Nesting of Elements
B
No Case Sensitive
C
None of these
D
Not having Closing Tag
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>
A
None of these
B
No Corresponding Closing Tag
C
No Case Sensitive Tags
D
No Attribute present
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>
A
None of these
B
Must have One Root Node
C
Does not have Attribute
D
Must have DTD
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>
A
None of these
B
XML Elements Must be Properly Nested
C
XML Attributes must be quoted
D
XML Documents Must Have a Root Element
Question 5
Is Following XML syntax is error free ?
<b><i>XML</b></i>
A
No
B
Yes
Question 5 Explanation: 
XML Elements Must be Properly Nested
There are 5 questions to complete.