0% found this document useful (0 votes)
29 views

XML MCQ Solved

The document contains questions about XML, XSLT, and XPath. It covers topics like XML structure, well-formedness, XSLT elements and loops, and XPath queries for selecting nodes.

Uploaded by

sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

XML MCQ Solved

The document contains questions about XML, XSLT, and XPath. It covers topics like XML structure, well-formedness, XSLT elements and loops, and XPath queries for selecting nodes.

Uploaded by

sa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

1.

Document Composition Facility Generalized Markup Language, short for


A. HTML B.XML C.GML D.XSD

2. In GML , which one is corrct?


a. <ok>ok</ok> b. <ok>ok c. </ok>ok</ok> d. none of above

3. XML DOCUMENT are also known as


a. Other-describing b. parent describing c. self-describing d. all

4.XML is derived from


a. HTML B.XSL C.XLL D. SGML.

5.XLL means
a. XML lower library b. XML Linking Language
c. XML Light Language d. None

6. In some way, XML can be used. These are


a. data interchange format. b. web data
c. creation of common data store d. all
7. which one is correct ?
a. var xmlDoc = new ActiveXObject("microsoft.xmldorn");
xmlDoc. load ( "Lst21.xml") ;
b. var xmlDoc = new ActiveObject("microsoft.xmldorn");
xmlDoc. load ( "Lst21.xml") ;
c. var xmlDoc = new ActiveXObject("microsoft.xmldom"); xmlDoc. load ( "Lst21.xml") ;
d. none
8.To parse an XML or SGML document, a processor must break down the
document into ________________________________________________ of the document
and the
relationship of its parts.
a. two pieces and understand its internal structure
b. its constituent parts and understand the structure
c. lower zone of its relation
d. all

9.Goals for XML are


a. XML SHALL BE STRAIGHTFORWARDLY USABLE OVER THE INTERNET.
b. XML SHALL SUPPORT A WIDE VARIETY OF APPUCATIONS.
c .IT SHALL BE EASY TO WRITE PROGRAMS WHICH PROCESS XML DOCUMENTS.
d. all

10.The first structural elememt in an XML.document is ____________________________. The


prolog
consists of two 6asic components, also optional:
_________________________________________________________.
a. an optional prolog , the XML declaration and the document type
declaration
b. an mandatory prolog , the XML declaration and the document type
declaration
c. an optional prolog , the XML details and the document type
declaration
d. all
11. <!ENTITY LR1 "WHAT TYPE OF EXAMPLE THIS IS "> is the example of
a. unparse entity b.parse entity c. entity reference d. none
12. &amp; is
a. < b.> c. & d.""

13. XML validity can be done by


a. xsl b.dtd c. xll d.html

14. _________________________ observes the constraints for a well-formed document as


defined by the XML
specification.
a. a well-formed document
b. non-defined document
c. a well-looking font on document

15. If the default declaration is the keyword #REQUIRED, then the attribute
_______________________________ for
all elements of the type in the attribute-list declaration.
a. must be specified
b. sometimes be specified
c. lower than its grade
d. none
Parts Two…………………………………………………………………………………………

1. which of the following is/are true regarding of XLink ?


a. Xlink shall be straightforwardly usable over the Internet
b. : Xlink shall be usable by a wide variety of link usage domains and of classes of linking
application software.
c. The Xlink expression language shall be XML
d. all.
2. which of the following is/are true regarding of XLink ?
a.The Xlink design shall be prepared quickly
b. The Xlink ,design shall be formal and concise
c. Xlinks shall be human-readable
d. all

3.________________________________ is a description of how a processor can transform an


XML document from one structure to another.
a. The XSL transformation language (xsl/ namespace) b. XLL c. XSP d. none

4. To loop in XSL, which of the following is true :


a. <xsl:for-each select="CATALOG/PLANT">
<TR>
<xsl:apply-templates/>
</TR>
</xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template>

b. <xsl:for select="CATALOG/PLANT">
<TR>
<xsl:apply-templates/>
</TR> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template>

c. <xsl:for-select select="CATALOG/PLANT">
<TR>
<xsl:apply-templates/>
</TR> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template>
d. none
5. To get the value of Node , we use
a. <xsl:value-of select="COMMON"/>
b. <xsl:value-in value="COMMON"/>
c. <xsl:value-out value="COMMON"/>
d. none

6.Getting attribute value , we use the following symbol


a. # b.@ c.% d. *

7. following which is not the xsl element


a. xsl: otherwise b. xsl:pi c. xsl:script d. xsl:scriptRotarot

8. following which are / is the xsl element


a.xsl:comment b.xsl:element c. xsl:element d. all

9. which of the following method is for the returns the number of the specified node relative
to all its siblings.
a. absoluteChildNumber b.ancestorChildNumber c.childNumbe d.depth

10. For the specified node, returns the hierarchical depth within the document tree. we use
a.depth b.elementindexList c.childNumber d.uniqueID

11. To finds all the children within a given context. Below which one is used
a.var qry = xmlDoc.selectNodes("CATALOG/PLANT/*");
b.var qry = xmlDoc.selectNodes("CATALOG/PLANT/?");
c.var qry = xmlDoc.selectNodes("CATALOG/PLANT/+");
d. none

12.The query below searches for CATALOG nodes in which all PLANT nodes have a ZONE child
node with the value 4.
a. var qry = xmlDoc.selectNodes (//CATALOG[$all$ PLANT/ZONE = '4']) ;
b. var qry = xmlDoc.selectNodes (//CATALOG[$any$ PLANT/ZONE = '4']) ;
c. var qry = xmlDoc.selectNodes (//CATALOG[$sort$ PLANT/ZONE = '4']);
d. none

13. the query below finds every PLANT node for which Mostly Sunny is the text of its LIGHT
node
a. var qry = xmlDoc.selectNodes ("//PLANT[LIGHT! text () = 'Mostly Sunny')");
b. var qry = xmlDoc.selectNodes ("//PLANT[LIGHT! value () = 'Mostly Sunny')");
c. var qry = xmlDoc.selectNodes ("//PLANT[ value () = 'Mostly Sunny')");
d. none

You might also like