File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "IBM Sample Exam" Watch "IBM Sample Exam" New topic

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.
[This message has been edited by Sarmad Sindhi (edited September 06, 2001).]
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2373

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 Software Engineer, TubeMogul, Emeryville, 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 it's a MUST, so don't miss it, also I am very impressed with XMLWhiz version 2 you can get it at
Hope it helps
Sarmad Sindhi
Ranch Hand

Joined: Dec 21, 2000
Posts: 37
Thanks guys.
I agree. Here's the link:
subject: IBM Sample Exam
It's not a secret anymore!