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