• Post Reply Bookmark Topic Watch Topic
  • New Topic

Some more questions  RSS feed

Ravi Nistala
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)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 remove.

2)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?
(Only 1 choice)
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.

3)An auto parts supplier stores customer data as XML in a database in the following format:

<customer id="2">
<address><city>Kansas City</city><state>MO</state></address>
<purchase id="124" totalCost="984.30">
<item id="123" quantity="27" />
<item id="456" quantity="13" />

Assume that the function XMLCOLUMN("cust.data") returns the XML documents from the database. Which of the following XQuery statements returns an XML document containing the distinct states where the customers are located?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!