Home

XML Markup MCQ Question with Answer

XML Markup MCQ with detailed explanation for interview, entrance and competitive exams. Explanation are given for understanding.

Download XML Markup MCQ Question Answer PDF

Question No : 43
In Schema to validate that an element can contain only Text use

content="textOnly"
content="text"
content="#PCDATA"
content="DATA"

Question No : 44
If "centre" is an attribute of a tag, then in Schema use __________ to validate it.

<AttributeType="centre"/>
<AttributeType="centre">
<attribute type="centre">
<attribute type="centre"/>

Question No : 45
The valid Schema tag is

<Element Type="roll" minOccurs="1" maxOccurs="1"/>
<element type="roll" minOccurs="1" maxOccurs="1"/>
<ElementType="roll" minOccurs="1" maxOccurs="1"/>
<Element Type="roll" minOccurs="1" maxOccurs="1"/>

Question No : 46
The valid Schema tag is

<ElementType name="roll" content="textOnly" dt:type="int"/>
<ElementType name="roll" content="textOnly" dt:dt="int"/>
<element type="roll" content="textOnly" dt:type="int"/>
<element type="roll" content="textOnly" dt:type="int"/>

Question No : 47
Extension of a Schema file and an XML file is same

True
False

Question No : 48
In DTD to specify an Attribute List use

<ATTLIST student centre (MintoPark|Gariahat|CamacStreet) "MintoPark">
<ATTLIST student (MintoPark|Gariahat|CamacStreet) "MintoPark">
<!ATTLIST student centre (MintoPark|Gariahat|CamacStreet) "MintoPark">
<!ATTLIST student (MintoPark|Gariahat|CamacStreet) "MintoPark">

Question No : 49
In DTD to validate that a tag can have only text use

<!ELEMENT name (PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT name (#DATA)>
<!ELEMENT name (DATA)>