wood burning stoves 2.0*
The moose likes Product and Other Certifications and the fly likes need help on mock question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "need help on mock question" Watch "need help on mock question" New topic

need help on mock question

david john

Joined: Feb 24, 2005
Posts: 1
Hi all,

can you please help me

what is the answers of below questions?

1)What are the requirements for an Extended XLink element?

a. You must specify atleast two locators and two arcs
b. You must specify atleast two locators and one arc
c. You must specify atleast one locator and one arc
d. You must specify atleast one locator and two arcs

2)Which attribute is not used when specifying a Simple XLink element?

a. locator
b. show
c. actuate
d. role
e. title


Which of the following is not true about CDATA sections?

a. CDATA sections contain character data
b. CDATA sections are not parsed by the XML parser
c. CDATA sections can contain tags and these tags need not be declared in the DTD
d. CDATA sections can contain tags and these tags must be declared in the DTD


How is an External Unparsed General entity defined in a DTD?

a. <!ENTITY entity-name EXTERNAL "file-name" NDATA notation-name>
b. <!ENTITY entity-name SYSTEM "file-name" >
c. <!ENTITY entity-name SYSTEM "file-name" notation-name>
d. <!ENTITY entity-name SYSTEM "file-name" NDATA notation-name>

What is an ENTITY attribute type?

a. It can contain the name of any External Unparsed entity
b. It can contain the name of any External Unparsed entity or Internal Unparsed entity
c. It can contain the name of any External Parsed entity or Internal Parsed entity
d. It can contain the name of any Parameter entity

Sandy Singh
Ranch Hand

Joined: Oct 19, 2004
Posts: 38
my answer 1-c,2-a,3-d,4-a,5-a,c,d

IBM 141- XML& related technologies<br />IBM 486-OOAD with UML<br />SCJP 1.4
Ranch Hand

Joined: Nov 12, 2004
Posts: 43

1 - c

Most probable answer: c.
However this answer is not correct as an extended link can be composed of locators (for remote documents) and resources (for local documents):

Resource example:

<town xlink:type="resource">

*Any* element (and its content) from the current document can be a resource.

Locator example:

<town xlink:type="locator" xlink:href="http://www.somesite.com/bucharest.html" xlink:label="capital city"/>

An arc is defined from a resource/locator to a resource/locator.

However, is it legal to define an arc from a resource/locator to itself ? Maybe somebody else can answer the question.
If the "to" and "from" attributes for an arc are not defined then all possible combinations between the resources/locators are considered except the "self" links. If the build-in mechanism does not support "self" links, are the manually specified links to "self" legal ?

2 - a

Note that there is not locator attribute at all. There is only an attribute of type xlink:type can take the value "locator".

3 - d

In a CDATA section you can write any UNICODE string except for the string "]]>" which is used to mark the end of the CDATA section.

4 - d

For Sandeep: any entity declared with a PUBLIC or SYSTEM keyword is external. There is no special "EXTERNAL" keyword.

5 - a

For Sandeep: there is no such thing such as "internal unparsed entity". Unparsed entities are *always* external. Therefore answer b is not correct.

Answer d is incorrect also: the parameter entity can *only* be accessed in the DTD - it cannot be accessed in a XML instance, therefore it cannot be accessed in an attribute of any type.

Regards,<br /><a href="http://www.mihaiu.name" target="_blank" rel="nofollow">Razvan</a><br /> <br /> <br />SCJP PREPARATION MATERIAL:<br /><a href="http://www.mihaiu.name/2004/sun_java_scjp_310_035/index.html" target="_blank" rel="nofollow">SCJP 310-035</a><br /><a href="http://www.mihaiu.name/2004/sun_java_scjp_310_035_test1/index.html" target="_blank" rel="nofollow">SCJP 310-035 T1</a><br /><a href="http://www.mihaiu.name/2004/sun_java_scjp_310_035_test2/index.html" target="_blank" rel="nofollow">SCJP 310-035 T2</a><br /><a href="http://www.mihaiu.name/2004/sun_java_scjp_310_035_test3/index.html" target="_blank" rel="nofollow">SCJP 310-035 T3</a><br /><a href="http://www.mihaiu.name/2004/sun_java_scjp_310_035_test4/index.html" target="_blank" rel="nofollow">SCJP 310-035 T4</a>
Sandy Singh
Ranch Hand

Joined: Oct 19, 2004
Posts: 38
Thanks Razvan,

But that was my knowledge level before certification (IBM-141).

Now it got improved (after certification)
I agree. Here's the link: http://aspose.com/file-tools
subject: need help on mock question
Similar Threads
JavaRanch XML mock exam errata-2
about references to unparsed entities
Mock Test Questions
XML One liners for the exam....
XML Notes - I