XML TEST
QUESTIONS
AND ANSWERS
Which of the following statement about SAX is false?
Select one:
a. Data parsing can be controlled through SAX
b. SAX has a smaller footprint
c. SAX faces difficulty in analyzing large documents
d. SAX focuses on real content - Answers -c
To prevent a type from being derived for defining new types you can specify
Select one:
a. <complexType name="Address" final="DeriveDeny" />
b. <complexType name="Address" final="secure" />
c. <complexType name="Address" final="NotInheritable" />
d. <complexType name="Address" final="restriction" /> - Answers -d
XSLT is:
Select one:
a. Extended Stylesheet Language Transformation
b. Extensible Stylesheet Language Translators
c. Extensible Stylesheet Language Transformation
d. Extensible Style Language Transformation - Answers -c
Which of the following are disadvantages of using SAX parsers?
Select one:
a. SAX is able to retrieve only a small subset of information
b. SAX is able to parse large files
c. SAX is read-only
d. SAX is faster when compared to DOM - Answers -c
, Which of the following statement about SAX is false?
Select one:
a. SAX faces difficulty in analyzing large documents
b. Data parsing can be controlled through SAX
c. SAX has a smaller footprint
d. SAX focuses on real content - Answers -b
Declaring an attribute as 'optional, -, -' means
Select one:
a. Attribute can occur any number of times
b. The name of the attribute is optional
c. Attribute may occur once and have any value
d. Attribute is optional and it can contain hyphens - Answers -c
Which of the following is the purpose of a schema?
Select one:
a. To convert document into HTML document
b. To convert document into XML document
c. To separate parsing and validation
d. To describe and constrain both the structure and data within the XML document -
Answers -d
Which of the following are valid tags?
Select one:
a. <fpt university>
b. <1fu>
c.
<fpt_university>
d. <:fu> - Answers -c
A Complex Type element can be defined using
Select one:
a. <ComplexType ="..." />
b. <Complextype element name="..." />
c. <xsd:complexType name="..." />
d. <xs:ComplexType name="..." /> - Answers -c
Which of the following types of parsers is used for object-based parsing?
Select one:
a. DOM
b. Iterator in StAX
c. SAX
d. Cursor in StAX - Answers -a
Schemas can be documented in human readable format by using
Select one:
QUESTIONS
AND ANSWERS
Which of the following statement about SAX is false?
Select one:
a. Data parsing can be controlled through SAX
b. SAX has a smaller footprint
c. SAX faces difficulty in analyzing large documents
d. SAX focuses on real content - Answers -c
To prevent a type from being derived for defining new types you can specify
Select one:
a. <complexType name="Address" final="DeriveDeny" />
b. <complexType name="Address" final="secure" />
c. <complexType name="Address" final="NotInheritable" />
d. <complexType name="Address" final="restriction" /> - Answers -d
XSLT is:
Select one:
a. Extended Stylesheet Language Transformation
b. Extensible Stylesheet Language Translators
c. Extensible Stylesheet Language Transformation
d. Extensible Style Language Transformation - Answers -c
Which of the following are disadvantages of using SAX parsers?
Select one:
a. SAX is able to retrieve only a small subset of information
b. SAX is able to parse large files
c. SAX is read-only
d. SAX is faster when compared to DOM - Answers -c
, Which of the following statement about SAX is false?
Select one:
a. SAX faces difficulty in analyzing large documents
b. Data parsing can be controlled through SAX
c. SAX has a smaller footprint
d. SAX focuses on real content - Answers -b
Declaring an attribute as 'optional, -, -' means
Select one:
a. Attribute can occur any number of times
b. The name of the attribute is optional
c. Attribute may occur once and have any value
d. Attribute is optional and it can contain hyphens - Answers -c
Which of the following is the purpose of a schema?
Select one:
a. To convert document into HTML document
b. To convert document into XML document
c. To separate parsing and validation
d. To describe and constrain both the structure and data within the XML document -
Answers -d
Which of the following are valid tags?
Select one:
a. <fpt university>
b. <1fu>
c.
<fpt_university>
d. <:fu> - Answers -c
A Complex Type element can be defined using
Select one:
a. <ComplexType ="..." />
b. <Complextype element name="..." />
c. <xsd:complexType name="..." />
d. <xs:ComplexType name="..." /> - Answers -c
Which of the following types of parsers is used for object-based parsing?
Select one:
a. DOM
b. Iterator in StAX
c. SAX
d. Cursor in StAX - Answers -a
Schemas can be documented in human readable format by using
Select one: