NEW
Font size
Worksheets2024-Scripting with XML
Total questions: 23
Worksheet time: 12mins
What does XML stand for?
Example Marup Language
X-Markup Language
eXtensible Markup Language
eXtra Modern Link
There is a way of describing XML data, how?
XML uses a DTD to describe the data
XML uses a description node to describe data
XML uses XSL to describe data
XML doesnot describe data
XML's goal is to replace HTML
False
True
What is the correct syntax of the declaration which defines the XML version?
<?xml version="1.0"?>
<?xml version="1.0" />
<xml version="1.0">
</xml version="1.0"?>
What does DTD stand for?
Dynamic Type Definiation
Document Type Definiation
Direct Type Definiation
Definition Type Definition
Is this a "well formed" XML document?
No
Yes
Which statement is true?
All the statements are true
All XML elements must be lower case
All XML elements must be properly closed
All XML documents must have a DTD
Which statement is NOT true?
XML elements must be properly nested
White-space is not preserved in XML
XML documents must have a root tag
XML tags are case sensitive
XML preserves white spaces
True
False
Is this a "well formed" XML document?
Yes
No
XML elements cannot be empty
False
True
Which is not a correct name for an XML element?
<h1>
<Note>
<1euro>
<NOTE>
Which is not a correct name for an XML element?
<NAME>
<gender>
<first name>
All 3 names are incorrect
Which is a correct name for an XML element?
<Name>
<9Nine>
<xmldocument>
<phone number>
XML attribute values must always be enclosed in quotes
False
True
What does XSL stand for?
eXpandable Style Language
eXtensible Stylesheet Language
eXtensible Style Language
eXtra Style Language
What is a correct way of referring to a stylesheet called "mystyle.xsl" ?
<link type="text/xsl" href='mystyle.xsl" />
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
<stylesheet type="text/xsl" href="mystyle.xsl" />
For the XML parser to ignore a certain section of your XML document, which syntax is correct?
<![CDATA[ Text to be ignored ]]>
<CDATA> Text to be ignored </CDATA>
<PCDATA> Text to be ignored </PCDATA>
<xml:CDATA[ Text to be ignored ]>
Which statement is true?
Attributes must occur in defined order
Attributes must always be present
None of the other two statements are true
What are XML entities used for?
Entities define shortcuts to standard attributes
Entities define shortcuts to standard elements
Entities define shortcuts to standard text or special characters
Which of the following XML fragments is well-formed?
<customer id="3456"><address/><zip code="3456" /> </customer>
<customer id=3456><name>John Smith</name></customer>
What is an XML instance?
An XML attribute
An XML element
An XML document
Which XML DOM object represents a node in the node tree?
The nodeList object
The document object
The node object
