This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes IBM Sample Exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "IBM Sample Exam" Watch "IBM Sample Exam" New topic
Author

IBM Sample Exam

Sarmad Sindhi
Ranch Hand

Joined: Dec 21, 2000
Posts: 37
Follwing is a IBM certification sample eaxm question
Consider the following parameter entity definitions:
<!entity % paras "P | Table | %lists;" >
<!entity % lists "OL | UL | DL | %specialLists;" >
<!entity % specialLists "MsgList | CodeList | %lists;" >
Given the above parameter entity definitions, which one of the following statements is true?
A.The parameter entity definitions are correct
B.One or more of the parameter entity definitions uses an invalid name
C.A parameter entity indirectly contains a reference to itself
D.Parameter entity replacement text violates well-formedness constraints
The correct answer is C, and I don't know why , I would be very thankfull if some one can please explain.
Sarmad
[This message has been edited by Sarmad Sindhi (edited September 06, 2001).]
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Hi Sarmad, i m new to XML and if my explanation is wrong plz someone correct me....

<!entity % lists "OL | UL | DL | %specialLists;">
<!entity % specialLists "MsgList | CodeList | %lists;" >

If u observe carefully the 2nd and 3rd line, u'll find that there r circular references (this term is possibly not used in XML or better say recursive calls used in C/C++/Java) from the last entity reference specialists to lists which in turn points to specialists again.Entity references typically points to anither element so here it's not resolvable as the <b>lists</b> will always seek the definition for <b>speciallists</b> and the later will seek the definition of the former .... (should we call it circular reference?).
Anyaway, i have XML@Whiz and not heard of IBM Sample exam. Where can i get it please?
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
[This message has been edited by Ashik uzzaman (edited September 06, 2001).]


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Kelly Aus
Ranch Hand

Joined: Sep 04, 2001
Posts: 90
Dear Sarmad,
Ashik's explanation is perfect. You can't heve circular references in parameter entities in DTD's. And hey guys IBM sample test paper is available at
http://www4.ibm.com/software/ad/certify/sam140.html it's a MUST, so don't miss it, also I am very impressed with XMLWhiz version 2 you can get it at
http://www.whizlabs.com/products/xmlwhiz/xmlwhiz.html
Hope it helps
Love
Kelly
Sarmad Sindhi
Ranch Hand

Joined: Dec 21, 2000
Posts: 37
Thanks guys.
Sarmad
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: IBM Sample Exam
 
Similar Threads
Problem in passing request parameter
Need help with some sample questions...
Taking exam in the end of September
Another IBM Sample Test Question
Splitting an XML file