XML MCQ Solved
XML MCQ Solved
5.XLL means
a. XML lower library b. XML Linking Language
c. XML Light Language d. None
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…………………………………………………………………………………………
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
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