wood burning stoves 2.0*
The moose likes Product and Other Certifications and the fly likes answers of the sample test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "answers of the sample test" Watch "answers of the sample test" New topic
Author

answers of the sample test

Larry Gao
Greenhorn

Joined: Nov 16, 2001
Posts: 16
What's the correct answer for the following sample test qs? And anyone got high score plz help.
1. The configuration information for a software application is stored in XML format. The configuration has to be parsed once during the start-up of the application. The loading of the configuration will also require searching across XML constructs. Performance is not a concern. These requirements can be MOST easily accomplished by designing the configuration loader based on which of the following?

a) XML Information Set

b) XSLT

c) DOM
d) SAX

Is the answer C because of the need for searching?

2. A developer has been assigned to select a technology for a B2B integration project. The company receives XML documents from various partners. The XML documents do not belong to one common vocabulary, and the partners will not select a common vocabulary. Which of the following W3C recommendations could be used to solve the above problem?


a) Publish one common XML Schema for all business partners.

b) Convert all the business partner XML documents into a semantic web.

c) Write a DOM parser that can understand any of the business partner's XML documents.

d) Develop one or more XSL stylesheets to convert the incoming XML documents into the XML vocabulary used within the organization.

The answer is D. right?
3. For an application that makes use of XML, the input XML data set consists of many elements and is very large. The BEST way to filter or extract a subset of information from the complete XML document would be to:


a) Parse the input into a DOM tree and traverse the resulting tree.

b) Employ an "event driven" processing model to extract the required elements.

c) Make use of an XSL style sheet.
d) Use the Scalable Vector Graphics (SVG) vocabulary
Answer is B, I guess.

4. Assume that relational database data will be served to a web site in HTML format, and that no other rendering or integration needs are known. Which of the following is the MOST likely reason a developer might choose XML as an intermediate step for this process?


a) The XML path is faster and more efficient than other web data delivery implementations.
b) The XML may be served directly to the web client in future releases.

c) The tools for producing XML are more available and easier to use than other web data delivery technologies.

d) The relational database is likely to already output its data in XML format.

A?

5. A DTD is validated by:


a) Running a DTD XML validation program on the platform on which the DTD will be used.

b) Running a validating parser against the DTD.
c) Validating an XML document that references the DTD using a validating XML parser.

d) Checking that a document is well-formed with an XML parser.

e) The XML application responding to SAX exceptions caused by the DTD.

C?
Which DOM Error condition will be flagged by creating a DOM "Element" with the name "Bakery Item"?

a) NO_DATA_ALLOWED_ERR

b) INVALID_CHARACTER_ERR

c) DOMSTRING_SIZE_ERR
d) TOKENIZER_ERR
No idea.
Louis Fegun
Ranch Hand

Joined: Aug 18, 2001
Posts: 60
Here are my replies:
Originally posted by Larry Gao:
[qb]What's the correct answer for the following sample test qs? And anyone got high score plz help.
1. Since searching is involved the DOM is the best option - C
2. Again I go with D since there is no requirement for a common vocabulary.
3. The SAX model is the best solution in this case, ans = B.
4. I go with D. xml is justified if there is already a middle-ware that formats the RDB output in XML.
5. I go with B.
6.The answer is B.
[ January 04, 2002: Message edited by: Louis Fegun ]
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
4.
b)... you could do that with xslt. Although personally I don't believe it. But its an argument.
a). I dont think so Cause RDBMS/SQL is very fast.
d) might be, too.
5.
c) is my favourite. There is no reference from the class using the parser. The dtd is referenced
in the xml-file with a line like < !DOCTYPE article SYSTEM "article.dtd">
6. will go to bad now.
good night.
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
About question #5.

5. A DTD is validated by:

a) Running a DTD XML validation program on the platform on which the DTD will be used.

No, since DTD is not plataform dependent.

b) Running a validating parser against the DTD.

No, since parsers validate document against DTD not the DTD directly.

c) Validating an XML document that references the DTD using a validating XML parser.

Yes, this this make more sense to me.

d) Checking that a document is well-formed with an XML parser.

No, DTD is not in XML format.

e) The XML application responding to SAX exceptions caused by the DTD.

Wrong!
Adrian
Niharika Srivastav
Ranch Hand

Joined: Dec 12, 2001
Posts: 32
Hi,
Q#4
4. Assume that relational database data will be served to a web site in HTML format, and that no other rendering or integration needs are known. Which of the following is the MOST likely reason a developer might choose XML as an intermediate step for this process?

a) The XML path is faster and more efficient than other web data delivery implementations.
b) The XML may be served directly to the web client in future releases.
c) The tools for producing XML are more available and easier to use than other web data delivery technologies.
d) The relational database is likely to already output its data in XML format.
The answer is "B". I would like to quote from Introducing XML,
Professional XML
Eventually, most web browsers are likely to support XML directly, therefore eliminating the conversion step and further improving application performance

Regards,
Niharika
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Niharika,
I dont agree with "B"
b) The XML may be served directly to the web client in future releases.

Browsers supporting XML is not enough. You do need to format the document view since XML docs have content only. How can a browser or any tool decide views properties of a document?
My choice is "D".
Adrian
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Which DOM Error condition will be flagged by creating a DOM "Element" with the name "Bakery Item"?
Well, I assume the main point here is that we shouldn't use a space character ' ' in the element name "Bakery Item". So my guess is:
a) NO_DATA_ALLOWED_ERR
No, because we don't know
b) INVALID_CHARACTER_ERR
Yes, the ' ' character isn't allowed in a xml element. (Just unicode letters and numbers, the _ (underscore), the : (colon), the - (hyphen) and . (period, full-stop) are allowed)
c) DOMSTRING_SIZE_ERR
No, this error message is thrown just if the specified range of text cannot be expressed as a DOMString, which in this case isn't true
d) TOKENIZER_ERR
No, this one doesn't exist
Regards
Berny
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: answers of the sample test