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
None of these
B
No Nesting of Elements
C
Not having Closing Tag
D
No Case Sensitive
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 Corresponding Closing Tag
B
No Case Sensitive Tags
C
None of these
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 DTD
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 Attributes must be quoted
C
XML Elements Must be Properly Nested
D
None of these
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.