Olete.in
Articles
Mock Tests
🧪 XML MCQ Quiz Hub
XML Mcq Question Set 2
Choose a topic to test your knowledge and improve your XML skills
1. To match the specific XML elements child like of parent element is the syntax will be
<xsl:template match=”PLANET_NAME”>
<xsl:template match=”PLANET/NAME”>
<xsl:template match=”/NAME”>
<xsl:template match=”//”>
2. PI in XML specification stands for
C.14
priceless instruction
processing instruction
polymorphic inheritance
3. A validating XML application should be used when:
the design demands that all elements use both start and end tags
missing or out-of-place elements could cause application errors
attribute values cannot refer to external entity references
High performance is an important architectural constraint
4. A DSO operates like
data simulation object at server side
dynamic source object at client side
data source object at client side
data simulation object at client side
5. The XSL formating object use to format a list is
list-block
list-item
list-item-body
list-item-label
6. Identify the most accurate statement about the application of XML:
XML must be used to produce XML and HTML output.
XML cannot specify or contain presentation information.
XML is used to describe hierarchically organized information.
XML performs the conversion of information between different e-business applications.
7. The XSl formatting object which formats the data and caption of a table is
table
table-content
table-text
none of the above
8. The XSL formating object which holds the content of the table body
table
table-body
table-content
table-footer
9. The XSL formatting object which formats the data in a table
table
table-body
title
table-content
10. The XSL formating object use to hold the content of the label of a list item is
list-block
list item
list-item-body
list-item-label
11. The XSL formating object use to hold the contents of the body of a list item is
list-block
list item
list-item-body
list-item-label
12. XSL has formatting object “ block”
is not supported in XSL
generates a block level reference area
create a display block
groups global declarations for a style sheet
13. XSL has “ block container” for formating the document
to create a display block to format the titles
to create a display block to format the paragraphes
to create a display block to format the headlines & figures
to create a block level reference area
14. The syntax for writing the minimum occurrence for an element is
<xsd:element ref=” note” min=” 0” />
<xsd:elements ref=” note” min=” 0” />
<xsd:elements ref=” note” minOccur=”0” />
<xsd:elements ref=” note” minOccurs=” 0” />
15. The syntax for writing default values for element is
<xsd:element name=”max” type=” xsd:integer” value=” 100” />
<xsd:element name=”max” type=” xsd:integer” fixValue=” 100” />
<xsd:element name=”max” type=” xsd:integer” default=” 100” />
<xsd:element name=”max” type=” xsd:integer” defaultval=” 100” />
16. To use XSLT in an XML system:
the input and output of the XSLT processor must be unparsed XML documents
the input and output of the XSLT processor must be a hierarchical tree representing an XML document
the XSLT processor must be called from a web agent
the XSLT processor must be given the DTD as well as the XML document instance
17. What is the role of the XPath language in XSL processing?
XPath identifies the order or path of processing to be followed as the XSL language is processed
XPath identifies locations in XML data to be transformed in the source tree and the locations to be generated in output tree specified in XSL translation prescriptions
XPath identifies the path to be followed in the execution of XSL translation prescriptions
XPath specifies which XSL transform files are to be used in the translation of XML
18. Which statement correctly describes the capabilities of the XSLT language?
XSLT uses the DTD to determine how XML documents will be translated
XSLT specifies how a hierarchical trees, representable by an XML document may be translated into non-hierarchical formats
XSLT specifies how a hierarchical tree, representable by an XML document, may be translated into another hierarchical tree, also representable by an XML document
XSLT specifies the formatting style to be used to render an XML document
19. XSLT processors accept as input:
an XML conforming document file and an XSLT specification file
only an XML document
only an XSLT specification
either an XML document or an XSLT specification
20. The transformation of XML document in to another type of document by XSLT can be done by (i)In the server (ii)In the client (iii)With a separate program
only(i) & (ii)
only (ii) & (iii)
all are correct
only (i) & (iii)
21. To match the specific XML elements in XMLT the syntax for given name “ rootnode” is
<xsl:template match=” root”>
<xsl:template match=” /”>
<xsl:template match=” rootnode” >
<xsl:template match=” //”>
22. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” )
<xsl:template match=” id(‘change’)” >
<xsl:template match=” (change)”>
<xsl:template match=” change”>
<xsl:template match-id=”Change”>
23. To match the text node (in XSLT) the syntax will be
<xsl:template match=” text”>
<xsl:template match-text=” text”>
<xsl:template match=text( )>
<xsl:template match=” text( )” >
24. An element declaration specifies
a single markup element
zmarkup elements
markup data
the document data
25. Well formed XML document means(most appropriate)
it contains a root element
it contain an element
it contains one or more elements
must contain one or more elements and root element must contain all other elements
26. Which of the following specify that the order and content of "membership" is not important
<!ELEMENT membership NORULE>
<!ELEMENT membership EMPTY>
<!ELEMENT membership ALL>
<!ELEMENT membership ANY>
27. Which of the following is used to specify the attribute list of an element
ATTLIST
?ATTLIST
!ATTLIST
#ATTLIST
28. Which of the following instruct the browser which stylesheet to use
<xml-stylesheet type="text/xsl" href="cd.xsl">
<xml-stylesheet type="text/xsl" xsl="cd.xsl">
<?xml-stylesheet type="text/xsl" href="cd.xsl"?>
<?xml-stylesheet type="text/xsl" xsl="cd.xsl"?>
29. Which of the following XSLT Patterns is used to match any descendant nodes
/
//
.
..
30. Which of the following XSLT Patterns is used to match the parent node
/
//
.
..
31. Which of the following is a valid XSLT iteration command
for
for-all
for-each
in-turn
32. What is an advantage of XML compared to HTML?
XML works on more platforms.
XML is suited to using Web pages as front ends to databases.
XML was designed for portable phones.
XML is simpler to learn than HTML.
33. The following best describes the development of XML.
XML developed from HTML because WEB browsers became more powerful.
XML is designed as a replacement because SGML can not be used for document development.
XML builds on HTMLs ability to provide content to virtually any audience by adding the power of intelligent content.
XML is the modern replacement for HTML and SGML, taking the good points from each, making both of those languages obsolete.
34. The correct priority for implementing XML based IETMs is :
Develop DTD, conduct a pilot project, create a modular library, train staff.
Train staff, convert legacy documents, develop DTD, create modular library.
Conduct pilot program, train staff, create modular library, develop DTD
Conduct pilot program, train staff, develop DTD, convert documents, purchace XML tools.
35. Which of the following statements is true:
XML is a direct subset of SGML
SGML is an application of HTML
XML is a kind of dynamic HTML
XHTML is XML rewritten in HTML
36. What is a qualified name?
Any name conforming to the XML Names specification
A name having prefix and local name separated by a colon
A name applying only to qualified elements and attributes
none of the above
37. What is a NCName
A Non-Common Name
A Non-Conforming Name
A Non-Colonized Name
none of the above
38. What is the default namespace
The namespace used by default when no namespace is declared
The namespace used when two or more namespaces are referenced
A namespace that is referenced with the xmlns attribute, but without a prefix
none of the above
39. What is an XML namespace?
A set of names applied to specific spaces within an XML document, such as the head and body
A set of names representing a specific XML vocabulary
A set of names for XML documents pertaining to a particular vocabulary
None of the above.
40. From what set of names do NCNames derive?
Any combination of characters allowable in XML
Any names conforming to XML Names, minus the colon
Any names for elements and attributes within the DTD to which the namespace refers
None of the above.
41. XML datatype was introduced in which year of the following versions of SQL Server?
SQL Server 2000
SQL Server 2001
SQL Server 2003
SQL Server 2005
42. What is the main use of XML?
To design data
To transport data
To verify data
All of the above
43. DTD Stands for______.
Document Type Definition
Document Transport Direction
Document Transcript Definition
none of the above
44. XML tags are
Complex
Case Sensitive
Case Insensitive
none of the above
45. DOM stands for
Data Object Model
Document Object Model
Document oriented Model
none of the above
46. Which language is case sensitive?
XML
HTML
Both A & B
none of the above
47. Which of the following is not a xml data type method?
query()
value()
nodes()
none of the above
48. Is it easier to process XML than HTML?
True
False
all of the above
None of the mentioned
49. Schema data type can be specified using
Dt:type
Data Type
XLink
All of the above
50. Which allows hyperlinks to print to specific parts of XML documents
Xhtml
Xpointer
XLink
none of the above
51. Which are the example of xml based multimedia language
HTML
HTML
XML
Both A & B
52. Which of the following programs support xml?
Internet Explorer
Netscape
Firefox Plug-in
Both A & B
53. NC-Name stands for
Non-Conforming Name
Non-Colonized Name
Non-Common Name
none of the above
54. Which statement is true?
All XML Elements Must Have A Closing Tag
All XML Documents Must Have A DTD
All XML Elements Must Be Lower Case
All of the above
55. Which is not a XML Function?
Style Information
Store Information
Transport Information
Structure Information
56. Which Internet Language Is Used For Describing Available Web Services In XML?
RSS
WSDL
OWL
RDF
57. A tool for reading XML documents is popularly called a ......
XML delimiters
XML processor
XML parser
Both b and c
58. XSL stands for
Extensible Style sheet Language
Extensible Style Language
Exclusive Stylesheet Language
Exclusive Style Language
59. XML tabs are ........
case sensitive
case insnesitive
easy
deficult
60. In XML the attribute value must always be quoted with .......
double quotes
single quotes
both a and b
name of attributes
Submit