Worksheetsyuuxml
Total questions: 25
Worksheet time: 13mins
Name
Class
Date
1.
Question 1: What does XML stand for?
a)
X-Markup Language
b)
Example Markup Language
c)
eXtra Modern Link
d)
eXtensible Markup Language
2.
Question 2: There is a way of describing XML data, how?
a)
XML uses XSL to describe data
b)
XML uses a DTD to describe the data
c)
XML uses a description node to describe data
3.
Question 3: XML's goal is to replace HTML
a)
False
b)
True
4.
Question 4: What is the correct syntax of the declaration which defines the XML version?
a)
<xml version="1.0" />
b)
<?xml version="1.0" />
c)
<?xml version="1.0"?>
5.
Question 5: What does DTD stand for?
a)
Dynamic Type Definition
b)
Direct Type Definition
c)
Do The Dance
d)
Document Type Definition
6.
Question 6: Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
a)
Yes
b)
No
7.
Question 7: Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
a)
Yes
b)
No
8.
Question 8: Which statement is true?
a)
All the statements are true
b)
All XML elements must be lower case
c)
All XML documents must have a DTD
d)
All XML elements must be properly closed
9.
Question 9: Which statement is NOT true?
a)
XML documents must have a root tag
b)
XML tags are case sensitive
c)
XML elements must be properly nested
d)
White-space is not preserved in XML
10.
Question 10: XML preserves white spaces
a)
False
b)
True
11.
Question 11: Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age="29">Tove</to>
<from>Jani</from>
</note>
a)
Yes
b)
No
12.
Question 12: Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>
a)
No
b)
Yes
13.
Question 13: XML elements cannot be empty
a)
True
b)
False
14.
Question 14: Which is not a correct name for an XML element?
a)
<1dollar>
b)
<h1>
c)
<Note>
d)
All 3 names are incorrect
15.
Question 15: Which is not a correct name for an XML element?
a)
<NAME>
b)
All 3 names are incorrect
c)
<age>
d)
<first name>
16.
Question 16: Which is a correct name for an XML element?
a)
<phone number>
b)
<xmldocument>
c)
<7eleven>
d)
<Name>
17.
Question 17: XML attribute values must always be enclosed in quotes
a)
False
b)
True
18.
Question 18: What does XSL stand for?
a)
eXtensible Stylesheet Language
b)
eXtensible Style Listing
c)
eXtra Style Language
d)
eXpandable Style Language
19.
Question 19: What is a correct way of referring to a stylesheet called "mystyle.xsl" ?
a)
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
b)
<link type="text/xsl" href="mystyle.xsl" />
c)
<stylesheet type="text/xsl" href="mystyle.xsl" />
20.
Question 20: For the XML parser to ignore a certain section of your XML document, which syntax is correct?
a)
<![CDATA[ Text to be ignored ]]>
b)
<xml:CDATA[ Text to be ignored ]>
c)
<PCDATA> Text to be ignored </PCDATA>
d)
<CDATA> Text to be ignored </CDATA>
21.
Question 21: Which statement is true?
a)
Attributes must always be present
b)
Attributes must occur in defined order
c)
None of the other two statements are true
22.
Question 22: What are XML entities used for?
a)
Entities define shortcuts to standard attributes
b)
Entities define shortcuts to standard elements
c)
Entities define shortcuts to standard text or special characters
23.
Question 23: Which of the following XML fragments is well-formed?
a)
<customer id="3456"><address/><zip code="3456"/></customer>
b)
<customer id=3456><name>John Smith</name></customer>
24.
Question 24: What is an XML instance?
a)
An XML element
b)
An XML attribute
c)
An XML document
25.
Question 25: Which XML DOM object represents a node in the node tree?
a)
The document object
b)
The node object
c)
The nodeList object
100 %
