File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Sample Questions 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 "Sample Questions" Watch "Sample Questions" New topic
Author

Sample Questions

Mamta Swain
Ranch Hand

Joined: Oct 11, 2001
Posts: 30
Can anybody help with the answers to the sample questions....
1)Which of the following are TRUE about Web Services Definition Language?

a) WSDL defines the XML structure for messages using DTD.
b) WSDL defines the XML structure for messages using XML Schema.
c) WSDL can be used to describe a SOAP Service.
d) WSDL is a method for performing RPC.
e) WSDL is less suitable to describe Web Services than UDDI.
Ans: c & e ??
2) Arguments over whether it is best to use elements or attributes to store values are common in XML applications. Which questions should an XML developer ask to determine whether it is best to use elements or attributes to store values for a particular situation?

a)Is the data flat or hierarchical?
b)Do multiple values need to be offered?
c)Do child information items need to be ordered?
d)Does information need to be distributed over multiple devices?
e)Does information need to be queried?
f)Does the value have one of an enumeration of values?
Ans: a,b,c,f ???
Thanks
Mamta
Niharika Srivastav
Ranch Hand

Joined: Dec 12, 2001
Posts: 32
Hi,
1)Which of the following are TRUE about Web Services Definition Language?
a) WSDL defines the XML structure for messages using DTD.
b) WSDL defines the XML structure for messages using XML Schema.
c) WSDL can be used to describe a SOAP Service.
d) WSDL is a method for performing RPC.
e) WSDL is less suitable to describe Web Services than UDDI.
Ans: c & e ??
should be b & c
2) Arguments over whether it is best to use elements or attributes to store values are common in XML applications. Which questions should an XML developer ask to determine whether it is best to use elements or attributes to store values for a particular situation?
a)Is the data flat or hierarchical?
b)Do multiple values need to be offered?
c)Do child information items need to be ordered?
d)Does information need to be distributed over multiple devices?
e)Does information need to be queried?
f)Does the value have one of an enumeration of values?
Ans: a,b,c,f ???
Yes, it's a,b,c and f. Ref: Elements vs. Attributes, Data Modelling, Professional XML.
Mamta Swain
Ranch Hand

Joined: Oct 11, 2001
Posts: 30
Thanks Niharika for your reply.
Could you help me out with the following questions.
1.An online parts supplier is creating an XML-based application to deliver data to B2B suppliers and vendors, and also for use by B2C clients of various types. Which of the following provides the BEST design solution for the various clients consuming the XML data?
a) Use a single XSL stylesheet to transform XHTML1.1 linking to a CSS2 stylesheet for formatting.
b) Let the application process the HTTP request and execute client-specific XSL transformations according to the client's capabilities.
c) Let the application evaluate the client's needs based on the HTTP request and deliver formatted HTML to the client.
d) Let the application deliver XML content to B2B clients and XHTML/HTML to B2C clients.
e) Pass XML directly to B2B clients, and use Active Server Pages or Java Server Pages to deliver customized HTML to B2C clients.
Ans: d ??
2) An XML developer is formatting XML output to HTML for multiple client types. Client memory footprint is a consideration. Which of the following approaches would BEST suit this environment?
a) Use only a subset of XHTML 1.1, relying on Format Objects to apply style.
b) Let the client process both the XML and the XSL documents.
c) Output HTML via a server-side XSL Transformation and embed CSS2 style information in the xsl:template actions.
Ans: c ??
3.
--------------------------------------
The web site for a financial services company will include both web-based trading (e-trades) and the financial research reports to help investors make their decisions. As part of application architecture, XML will be used in several ways:
As the data interchange format between the web based application and the comapny's legacy trading systems
As the EFT ( Electronic Funds Transfer) data interchange format with the customer's bank , from which funds will be withdrawn to settle the trade
As the source format for the financial research reports , which will be searchable and displayable from the web browser.
-------------------------------
Which of the following is MOST likely to be required in the design ?
a) XML from the financial institution must be validated and transformed into a format expected by the legacy system.
b) XML from the legacy system must be transformed into a format expected by the financial institution's application.
c) The DTD for financial reports must be consistent with element names used by the financial institution.
d) The DTD for EFT transactions must be consistent with element names used by the browser.
Ans : c ???
4) Again from the above case - > To build the interface between the legacy trading system and the web application, which of the following is LEAST likely to be part of the design?
a) An XML transformation process that produces data in the legacy trading system format.
b) An XML parser that produces a DOM representation of the XML.
c) An XSL processor that reads the legacy data and transforms it to XML.
d) Java or other code that reads the DOM and produces data for the legacy system.
Ans : b ???

Thanks
Mamta
Nitin Gujral
Greenhorn

Joined: Jan 19, 2001
Posts: 17
My take on your questions is :
1- b
Because the system is to be used by "B2C clients of various types", it might be required to send data as not only HTML/XHTML but also WML, PDF etc.
2- c
3- a
Transformation would be needed to feed data to legacy system. I donot have a reason against option 'c'.
4- c
An XSL processor would not be able to transform a legacy data as it would not be in XML format.
Mamta Swain
Ranch Hand

Joined: Oct 11, 2001
Posts: 30
Thanks Nitin.
Niharika Srivastav
Ranch Hand

Joined: Dec 12, 2001
Posts: 32
Hi,
I agree with Nitin, for ques#3
a) XML from the financial institution must be validated and transformed into a format expected by the legacy system.
This is most likely to be in the design and is is the answer.
Regards
Niharika
 
Don't get me started about those stupid light bulbs.
 
subject: Sample Questions