NEW
Font size
WorksheetsWeb Technology - XML - Tutorial Sheet - 04
Total questions: 20
Worksheet time: 16mins
Which of the following are well-formed XML fragments?
a. < myElement myAttribute=”someValue’/>
b. < myElement myAttribute=someValue/>
c. < myElement myAttribute=’someValue’>
d. < myElement myAttribute=”someValue”/>
How many root elements can we have in XML?
a. 1
b. 2
c. 3
d. 0
What is DTD?
a. Document type Determination
b. Determination Type Defination
c. Document Text Definition
d. Document Type Definition
Which statement is true?
XML tags are case sensitive
XML documents must have a root tag
XML elementss must be properly closed.
All of the above.
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 XML stand for?
eXtra Modern Link
eXtensible Markup Language
X-Markup Language
Example Markup Language
The need of using a DTD in developing XML document is?
a. Required when validating XML documents.
b. No longer necessary after the XML editor has been customized.
c. Used to direct conversation using an XSLT processor.
d. A good guide to populating templates to be filled in when generating an XML document automatically.
The need of using a DTD in developing XML document is?
a. Required when validating XML documents.
b. No longer necessary after the XML editor has been customized.
c. Used to direct conversation using an XSLT processor.
d. A good guide to populating templates to be filled in when generating an XML document automatically.
What is XSLT?
Extensible Standard Language Transformation
Extensible Sytlesheet Language Transformation
Extensible Standard List Transformation
Extensible Sytle Language Transformation
Which statement is true?
XML tags are case sensitive
XML documents must have a root tag.
XML elements must be properly closed.
All of the above.
How to specify the attributes with multiple values?
a. < myElement myAttribute=”value1” myAttribute=”value2”/>
b. < myElement myAttribute=”value1 value2”/>
c. Attributes cannot have multiple values.
d. < myElement myAttribute=”value1, value2”/>
Which special character is NOT used in XML?
<
>
$
?
How is an empty XML element defined?
<sample></sample>
<sample/>
All of the above.
None of the above.
which one
describe a work or remark to (a particular author, artist, or
speaker).
Attributes
Identifiers
Elements
Tags
Which of the following is a valid XSLT iteration command
for
for-all
for-each
in-turn
What can be used to transform XML into HTML?
XLT
XSLT
DTD
DOM
Choose the correct DTD syntex
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKTITLE (#PCDATA)>]>
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>>]
<!DOCTYPE BOOKSTORE [
<!ELEMENT BOOKSTORE (BOOK*) >
<!ELEMENT BOOK (BOOKID,BOOKTITLE)>
<!ELEMENT BOOKID (#PCDATA)>
<!ELEMENT BOOKTITLE (#PCDATA)>]>
Which of the following is a correct way to declare an XML namespace?
<element xmlns="http://www.example.com">
<element xmlns:prefix="http://www.example.com">
<element xmlns:prefix="http://www.example.com" />
<element xmlns="http://www.example.com" />
What is the purpose of an XML Schema?
To define the structure and data types of XML documents.
To transform XML documents into other formats.
To validate the syntax of XML documents.
To provide a stylesheet for XML documents.
Which of the following statements about XML comments is true?
XML comments can contain the characters < and >.
XML comments must start with <!-- and end with -->.
XML comments are not allowed in XML documents.
XML comments can be nested.
