Hi Ranchers! new to this forum. I'm preparing for IBM 141 and u people help is needed to answer the following questions 1.When working with XML on an object-based application, XML data binding is used to: a) marshal and unmarshal the database schema to and from XML. b) marshal and unmarshal the object model to and from XML. c) exercise XML APIs from an object-based programming language. d) use XSLT to generate object-based code
2.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.
3.What is the implication of the fact that XSLT is a side-effect free, declarative programming language?"
a) XSLT does not support recursion. b) XSLT does not support inclusion of one stylesheet into another. c) XSLT does not support if-then-else, while, for statements. d) XSLT cannot support data structures. e) XSLT cannot interact with an external system. f) Value of a variable cannot be updated.
4.An XML-based employee records application is populated from a back-end relational database. Each employee has a unique numeric employee ID number that serves as the database key for that employee. The XML has an associated DTD. Validating the employee ID data would be:
a) Handled by the parser associating the employee name to a unique ID attribute with the XML employee application providing the business logic or functionality. b) Handled by the parser associating a unique ID element with the XML employee application providing the business logic or functionality. c) Handled by the XML parser using a SAX parser and relying on event-handling to capture the value of a unique ID attribute and the XML employee application would deal with user interface and rendering issues. d) Handled by the XML parser as a non-unique CDATA attribute, with verification, business logic and functionality being provided by the XML employee application. e) Stored in an empID element, with a SAX parser capturing the element's character content and evaluating it, reporting the result to the XML employee application for further processing.
5.A development team has moved an XML application from the development server to the staging server. While testing the XML application on the new server, the application returns a message indicating that there is an "invalid entity reference" error in the DTD. The MOST likely cause of this error is:
a) Someone forgot to recompile the DTD on the new server, and the parser is failing to recognize the entities in the XML document instance. b) The DTD references external entities that were not migrated. c) The DTD needs to be converted to an XML Schema that uses tokens instead of entities. d) The parser is incompatible with the XML application. e) The application must be recompiled on the new server.