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>
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
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.