Jump to content

manishi

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by manishi

  1. Thank you for the suggestion.If this is not a proper place to put quizes then i am sorry.Also just wanted to tell you that I did my home work.I could not find the answer in the books and also on the net(may be i googled with wrong word). and i dont have much exp on xhtml.so no idea.that is why i posted this quiz. otherwise i would not be wasting my time here.I was thinking of answer as "C" (because if we cache ih javasacript and css then next time it will be not be downloaded so the performance will be good after the first time.but in most of the browsers you can make setting so as to remove the cache when you close the browser) but was not sure.Also i just dont want answer i want why that answer is correct.
  2. manishi

    xpath question

    What XPath expression will find all page elements that contain child page elements within the following XML fragment? <site> <page id="000"/> <page id="001"> <page id="001_000"> <link target="003_000"/> </page> <page id="001_001"/> </page> <page id="002"/> <page id="003"> <page id="003_000"/> <page id="003_001"/> </page></site> A.//page/page B.//page/@page C.//page[count(*) > 0] D.//page I was thinking of answer "D".just based on theory.Please confirm which is the correct answer.Also if anybody knows how to test these then please let me know.
  3. What will be displayed from the following XSLT? <![CDATA[ <xsl:variable name="x" select="-7"/> <xsl:value-of select="( 1 - 2 *( $x < 0 )) * $x "/> ]]> A.-7 because the value of the xsl:variable x cannot be changed once assigned. B.0 due to the evaluation of the nested Boolean expression to false. C.7 due to the evaluation of the nested Boolean expression to true. D.Everything between the inner square brackets.I was thinking of answer "D".
  4. manishi

    XML & Database

    An application will access data that will reside in XML documents stored in an RDBMS. What are two vendor-independent choices for storing each document in the RDBMS?(Choose 2) A.In a table view. B.As a SOAP envelope. C.In a table's CLOB column. D.As RDBMS meta-data. E.Decomposed into various columns or tables.
  5. manishi

    Parsing using SAX2

    Following is the XML document: <?xml version="1.0" encoding="UTF-8"?><Root xmlns:ns1="http://www.acompany.com/namespace" xmlns:ns2="http://www.bcompany.com/namespace"> <Node>a Node</Node> <SubNode xmlns="http://www.ccompany.com/namespace">a sub node</SubNode></Root> When a namespace-aware XML SAX2 application parses this document, what will the qualified name be for the element Node? A.http://www.acompany.com/namespace:Node B.http://www.bcompany.com/namespace:Node C.http://www.ccompany.com/namespace:Node D.NodeI was thinking that the answer is "D".but i am not sure.
  6. An XHTML document that contains a large amount of dynamic content, and static embedded style information and JavaScript is several hundreds of kilobytes in size. The document is served by a J2EE web application over HTTP. The end-user performance is unacceptable due to the time taken to download the document because of its size. Which of the following solutions is most likely to improve performance? A.Break the document into several smaller fragments and enable HTTP parallel rendering to re-join them on the client.B.Create a stub XHTML file to load onto the browser and then use AJAX calls to retrieve the remainder of the document in the background.C.Enable browser caching of the document using directive <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">D.Extract all style and JavaScript information into an external file for CSS and JavaScript each to enable browser caching.
  7. 1)What is the result of the following XSLT template? <xsl:template name="Do"> <xsl:param name="j" select="1"/> <xsl:if test="$j <= 5"> <xsl:value-of select="$j"/> <xsl:call-template name="Do"> <xsl:with-param name="j" select="$j + 1"/> </xsl:call-template> </xsl:if></xsl:template>I was thinking the answer is "12345"but that is based on theory. i dont knwo how to create an xml for the above xslt to test. 2)Which two of the following are true concerning DOM2 events and validation?(Choose 2) A.Document modifications are subject to validation.B.DOM2 has no way to validate changes after the document is parsed.C.Mouse actions cause Events, but document modifications do not.D.MutationEvents will be sent to listeners when the document is changed.E.MutationEvents indicate which Node was changed, but not the actual action such as add or removeI was thinking the answer is C and D. my answer is beased on w3 DOM specification which is very vague is describing the eeents and validation.if somebody can tell me which book to read to get the information that would be helpful.3)
×
×
  • Create New...