This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Some more questions

 
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">
<name>SwellMobile</name>
<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" />
</purchase>
</customer>

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?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!