<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/css" href="../LJKQuiz.css"?><lq:quiz xmlns:lq="http://courses.wccnet.edu/computer/mod/LJKQuiz.xsd">	<metadata>		<id>X10a-va-q</id>		<title>Validity</title>		<overall-objective>Explain the concept of validity</overall-objective>	</metadata>	<item id="x10a-va-01">		<itemObjective>Explain or identify the difference between "well-formed" and "valid"</itemObjective>		<variant form="short-answer">			<question>Explain the difference between "well-formed" and "valid".</question>			<answer>In order to be valid, an XML document must conform to the rules of one (or more) specific XML language's official, public definition, as well as being well-formed.</answer>		</variant>		<variant form="multiple-answer">			<question>In order to be "valid" an XML document must: (mark all)</question>			<choices num="5" randomize="true">				<choice id="a">be "well-formed" according to the rules of XML</choice>				<choice id="b">conform to Backus-Naur form (BNF)</choice>				<choice id="c">conform to Augmented Backus-Naur form (ABNF)</choice>				<choice id="d">conform to the DTD or schema of the specific XML language of which it is an example</choice>				<choice id="e">make at least one reference to coffee grounds</choice>			</choices>			<answer correct="a d">To be "valid", an XML document must be "well-formed" according to the rules of XML, and conform to the DTD or schema of the specific XML language of which it is an example.</answer>		</variant>		<variant form="true">			<question>To be "valid", an XML document must be "well-formed" according to the rules of XML, and also conform to the DTD or schema of the specific XML language of which it is an example.</question>			<choices num="2" randomize="false">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="a">True</answer>		</variant>		<variant form="false" randomize="false">			<question>In XML, being "valid" means conforming to general XML rules, and being "well formed" means conforming to a DTD or schema for a specific type of XML.</question>			<choices num="2">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="b">False: that's backwards. Actually, being "valid" means conforming to a DTD or schema for a specific type of XML, and being "well formed" means conforming to general XML rules.</answer>		</variant>	</item>	<item id="x10a-va-02">		<itemObjective>Explain or identify the purpose of DTDs and Schemas</itemObjective>		<variant form="short-answer">			<question>Briefly explain the purpose of DTDs and Schemas.</question>			<answer>These are the documents that provide a formal, on-line, machine-readable definition of a particular XML-based language.</answer>		</variant>		<variant form="multiple-choice">			<question>Identify the purpose of DTDs and Schemas:</question>			<choices num="5" randomize="true">				<choice id="a">to provide metadata for a data set</choice>				<choice id="b">to provide on-line processing of XML data</choice>				<choice id="c">to provide a formal, on-line, machine-readable definition of a particular XML-based language</choice>				<choice id="d">to provide a customized data-entry format for a specific XML-based language</choice>				<choice id="e">to force programmers to stay at work until 4 AM</choice>			</choices>			<answer correct="c">The purpose of DTDs and Schemas is to provide a formal, on-line, machine-readable definition of a particular XML-based language.</answer>		</variant>		<variant form="true">			<question>The purpose of DTDs and Schemas is to provide a formal, on-line, machine-readable definition of a particular XML-based language.</question>			<choices num="2" randomize="false">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="a">True</answer>		</variant>		<variant form="false" randomize="false">			<question>The purpose of DTDs and Schemas is to provide metadata for a data set.</question>			<choices num="2">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="b">False: The purpose of DTDs and Schemas is to provide a formal, on-line, machine-readable definition of a particular XML-based language.</answer>		</variant>	</item>	<item id="x10a-va-03">		<itemObjective>Differentiate DTDs from Schemas</itemObjective>		<variant form="short-answer">			<question>Briefly list some differences between DTDs and schemas.</question>			<answer>Schemas are written using XML itself; most new standards are defined using schemas. DTDs were the only way to define XML languages at first, and were also used in XML's predecessor, SGML.</answer>		</variant>		<variant form="multiple-answer">			<question>Identify all aspects of XML schemas that are NOT true of DTDs</question>			<choices num="5" randomize="true">				<choice id="a">provide machine-readable on-line definition of an XML-based language</choice>				<choice id="b">written using XML</choice>				<choice id="c">used to define the earliest XML-based languages</choice>				<choice id="d">used to provide finer control over data formats</choice>				<choice id="e">used to define SGML documents as well as XML</choice>			</choices>			<answer correct="b d">Schemas are written using XML, and provide finer control over data formats. (Note that schemas do provide machine-readable on-line definition of an XML-based language, but that is also true of DTDs, and so is excluded by the conditions of the question.)</answer>		</variant>		<variant form="true">			<question>Schemas are written using XML, and provide finer control over data formats.</question>			<choices num="2" randomize="false">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="a">True</answer>		</variant>		<variant form="false" randomize="false">			<question>Schemas, not DTDs, were used to define the earliest XML-based languages.</question>			<choices num="2">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="b">False: schemas are relatively recent; DTDs were used to define the earliest XML-based language.</answer>		</variant>	</item>	<item id="x10a-va-04"><itemObjective>Identify the most authoritative XML validator.</itemObjective>		<variant form="short-answer">			<question>Which is the most authoritative XML validator?</question>			<answer>The World Wide Web Consortium (W3C, http://validator.w3.org/)</answer>		</variant>		<variant form="multiple-choice">			<question>Which provides the most authoritative XML validator?</question>			<choices num="5" randomize="true">				<choice id="a">OASIS: Organization for the Advancement of Structured Information Standards</choice>				<choice id="b">IEEE: Institute of Electrical and Electronics Engineers</choice>				<choice id="c">W3C: World Wide Web Consortium</choice>				<choice id="d">MIT: Massachusetts Institute of Technology</choice>				<choice id="e">IAB: Internet Architecture Board</choice>			</choices>			<answer correct="c">W3C: World Wide Web Consortium</answer>		</variant>		<variant form="true">			<question>W3C, the World Wide Web Consortium, provides the most authoritative XML validator.</question>			<choices num="2" randomize="false">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="a">True</answer>		</variant>		<variant form="false" randomize="false">			<question>IEEE, the Institute of Electrical and Electronics Engineers, provides the most authoritative XML validator.</question>			<choices num="2">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="b">False: W3C, the World Wide Web Consortium, provides the most authoritative XML validator.</answer>		</variant>	</item>	<item id="x10a-va-05"><itemObjective>Explain or identify why validity is important</itemObjective>		<variant form="short-answer">			<question>Briefly explain why validity is important.</question>			<answer>XML's strength lies in being both open and standard, but invalid documents are weak, because they deceive others into thinking they're open and standard, often leading to errors in processing.</answer>		</variant>		<variant form="multiple-choice">			<question>Identify reasons why it's important to create XML documents that are valid:</question>			<choices num="5" randomize="true">				<choice id="a">valid documents are easier to create than invalid ones</choice>				<choice id="b">valid documents are less bulky than invalid ones</choice>				<choice id="c">valid documents are less likely than invalid ones to lead to processing errors</choice>				<choice id="d">valid documents conform to an open source of rules</choice>				<choice id="e">valid documents enable the brewing of more flavorful coffee</choice>			</choices>			<answer correct="c d">Valid documents are less likely than invalid ones to lead to processing errors, and they conform to an open source of rules.</answer>		</variant>		<variant form="true">			<question>Valid documents are less likely than invalid ones to lead to processing errors, and they conform to an open source of rules.</question>			<choices num="2" randomize="false">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="a">True</answer>		</variant>		<variant form="false" randomize="false">			<question>Valid documents are better than invalid ones because they are less bulky.</question>			<choices num="2">				<choice id="a">True</choice>				<choice id="b">False</choice>			</choices>			<answer correct="b">False: Valid documents are better than invalid ones because they are less likely to lead to processing errors, and they conform to an open source of rules.</answer>		</variant>	</item></lq:quiz>