• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sample Questions

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Nitin.
 
Niharika Srivastav
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic