XML MCQ Quiz Hub

XML Mcq Question Set 5

Choose a topic to test your knowledge and improve your XML skills

XML is case sensitive





✅ Correct Answer: 1

The correct tag is





✅ Correct Answer: 1

var xmlDoc=new ActivexObject ("Microsoft.xmldom"); Here xmldom is





✅ Correct Answer: 2

.cloneNode(false)





✅ Correct Answer: 4

.cloneNode(True)





✅ Correct Answer: 1

To insert a node use





✅ Correct Answer: 4

Schema and DTD can be used together





✅ Correct Answer: 2

_______ is used for comment in XML





✅ Correct Answer: 2

DTD stands for Data Type Definition





✅ Correct Answer: 1

Use _________ to specify an Attribute list





✅ Correct Answer: 2

If DTD file is used, it always validates an XML file irrespective of how the XML file is retrieved





✅ Correct Answer: 2

In Schema data type can be specified using





✅ Correct Answer: 3

In Schema Attribute list can be set to any element





✅ Correct Answer: 1

If two styles are mentioned as p{ color:blue } p.abc{ color:red } and paragraph tag is used as <p class=abc>Hello World</p> then





✅ Correct Answer: 1

To select a particular node __________ is used





✅ Correct Answer: 2

To select all the names whose salary is above 10000 use





✅ Correct Answer: 3

To arrange names in descending order in XSL, use





✅ Correct Answer: 3

XML is preferred over HTML because





✅ Correct Answer: 4

In XML tags can be closed in any order





✅ Correct Answer: 2

___ is used inXML documents to block off text that are to be side stepped by an XML parser





✅ Correct Answer: 1

To stop processing external files in XML use





✅ Correct Answer: 4

A new node can be inserted anywhere in an XML file





✅ Correct Answer: 1

If a node is replaced, it is reflected on the file itself





✅ Correct Answer: 2

For internal DTD __________ is not required





✅ Correct Answer: 2

Data type is applied in an XML file using





✅ Correct Answer: 1

To retrieve a value stored in a attribute declared in a DTD file _________ is used





✅ Correct Answer: 1

Schema follows





✅ Correct Answer: 2

Cascading style sheet can be





✅ Correct Answer: 3

To match a particular record use





✅ Correct Answer: 3

To select the first node using XPointer use





✅ Correct Answer: 1

_____ can be used to filter tags





✅ Correct Answer: 4

__ is used to define the addressing mechanism while ________ is provides a standard way to use that mechanism in references





✅ Correct Answer: 2

<? xml version="1.0"?> tag is mandatory





✅ Correct Answer: 2

Latest version of XML is _______





✅ Correct Answer: 1

In XML all attribute values must be quoted ie. center="MP"





✅ Correct Answer: 1

_______ appends a child





✅ Correct Answer: 2

.appendChild(newnode) can appends a node at any position





✅ Correct Answer: 2

_______ replaces a child node





✅ Correct Answer: 4

______ removes a child node





✅ Correct Answer: 1

To specify a list of Attributes in Schema use





✅ Correct Answer: 2

Which one is used to mention the values Attribute list





✅ Correct Answer: 1

In Schema to validate that an element can contain only Text use





✅ Correct Answer: 1

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





✅ Correct Answer: 4

The valid Schema tag is





✅ Correct Answer: 2

Extension of a Schema file and an XML file is same





✅ Correct Answer: 2

In DTD to specify an Attribute List use





✅ Correct Answer: 3

In DTD to validate that a tag can have only text use





✅ Correct Answer: 2

DTD follows





✅ Correct Answer: 2

Elements from the HTML namespace are displayed as they would in ...............





✅ Correct Answer: 3

An .................... block can be to embed a CSS style sheet within an XML document.





✅ Correct Answer: 3