• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Let's discuss the sample test

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the free voucher program closed, now we can discuss the sample test problems. Anyone knows the answer of this one. Just don't understand the question.
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.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing A... but I'm no xml expert yet, haven't taken the sample test.
[This message has been edited by Matt_Blitz (edited December 20, 2001).]
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I chose C when I took the samle test.
It is ID attribute indicates a unique element. So B,D,E are wrong. A states that "associating the employee name to a unique ID attribute" is confusing.

Doug
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will go with C as well. Note that XML applications are designed for user-interface and rendering functionality and not for business logic. Business logic is provided by enterprise software components, e.g. EJB and Servlets.
 
I don't even know how to spell CIA. But this tiny ad does:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic