• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

need help on mock question

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


3)

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

4)

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>


5)
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


Thanks
david
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my answer 1-c,2-a,3-d,4-a,5-a,c,d
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,




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">
<townName>Bucharest</town>
<townSize>3</townSize>
</town>

*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.
 
Sandy Singh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Razvan,

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

Now it got improved (after certification)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic