R4RIN
Articles
Java 8
MCQS
XML MCQ Quiz Hub
XML Mcq Question Set 5
Choose a topic to test your knowledge and improve your XML skills
1. XML is case sensitive
True
FALSE
all of the above
None of the mentioned
2. The correct tag is
<?xml version="1.0"?>
<?xml version "1.0"?>
<xml version="1.0">
<xml version "1.0">
3. var xmlDoc=new ActivexObject ("Microsoft.xmldom"); Here xmldom is
Name of object
Name of component
Name of class
none of the above
4. .cloneNode(false)
Copies whole structure
Copies only the current node
Copies all leaf nodes
None of the above
5. .cloneNode(True)
Copies whole structure of the current node along with sub tags and data
Copies only the current node
Copies all leaf nodes
None of the above
6. To insert a node use
insert
insertAfter
AddNew
InsertBefore
7. Schema and DTD can be used together
True
False
all of the above
None of the mentioned
8. _______ is used for comment in XML
CDATA
<!-- -- >
//
/* */
9. DTD stands for Data Type Definition
True
False
all of the above
None of the mentioned
10. Use _________ to specify an Attribute list
ATTLST
ATTLIST
ATTRIBUTE
Lists
11. If DTD file is used, it always validates an XML file irrespective of how the XML file is retrieved
True
False
all of the above
None of the mentioned
12. In Schema data type can be specified using
dataType
type
dt:type
data:type
13. In Schema Attribute list can be set to any element
True
False
all of the above
None of the mentioned
14. 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
The color of Hello World will be red
The color of Hello World will be blue
The color of Hello World will be the default color ie. Black
None of the above
15. To select a particular node __________ is used
select
selectNodes
selectNode
selectedNodes
16. To select all the names whose salary is above 10000 use
.......…/nodename/name[salary&gt;10000]
....…/nodename.nodes/name[salary&gt;10000]
....…/nodename[salary&gt;10000]/name
....…/nodename[salary&gt;10000].nodes/name
17. To arrange names in descending order in XSL, use
Order-by=&quot;name&quot;
Order-by=&quot;+name&quot;
Order-by=&quot;-name&quot;
Order-by=&quot;name&quot; desc
18. XML is preferred over HTML because
The GUI is embedded in the data
Searching for information in the data is tough
Data is tied to the logic and language of HTML
All of the above
19. In XML tags can be closed in any order
True
False
all of the above
None of the mentioned
20. ___ is used inXML documents to block off text that are to be side stepped by an XML parser
CDATA
&lt;!-- -- &gt;
//
/* */
21. To stop processing external files in XML use
resolveExternal = false
resolve = false
resolvcExternal = false
resolveExternals = false
22. A new node can be inserted anywhere in an XML file
True
False
all of the above
None of the mentioned
23. If a node is replaced, it is reflected on the file itself
True
False
all of the above
None of the mentioned
24. For internal DTD __________ is not required
DOCTYPE
SYSTEM
ELEMENT
#PCDATA
25. Data type is applied in an XML file using
dt:dt
dt:type
data:type
dt:data:type
26. To retrieve a value stored in a attribute declared in a DTD file _________ is used
&amp;attribute name;
&amp;attribute name
attribute name
&amp;attribute name;*
27. Schema follows
Top down approach
Bottom up approach
Closed model
None of the mentioned
28. Cascading style sheet can be
External, Inline
Internal, External
Internal, External, Inline
External only
29. To match a particular record use
match=&quot;.[centre=&#039;MP&#039;]&quot;
match=&quot;.[centre=MP]&quot;
match=&quot;.[@centre=&#039;MP&#039;]&quot;
match=.[@centre=&#039;MP&#039;]
30. To select the first node using XPointer use
...........…/nodename[0]
....…/nodename[1]
....…/nodename[0].nodes
.......…/nodename[1].nodes
31. _____ can be used to filter tags
apply-templates
select
Any one of the above
Both of the above
32. __ is used to define the addressing mechanism while ________ is provides a standard way to use that mechanism in references
XPointer, XPath
XPath, XPointer
XPath, Xlink
XQuery, Xlink
33. <? xml version="1.0"?> tag is mandatory
True
False
all of the above
None of the mentioned
34. Latest version of XML is _______
1.0
2.0
3.0
4.0
35. In XML all attribute values must be quoted ie. center="MP"
True
False
all of the above
None of the mentioned
36. _______ appends a child
.append (newnode)
.appendChild(newnode)
.append(newnode, ,reference_node)
.appendChild(newnode,reference_node)
37. .appendChild(newnode) can appends a node at any position
True
False
all of the above
None of the mentioned
38. _______ replaces a child node
.replace(nodename)
.replaceChild(nodename)
.replace(nodename, reference)
.replaceChild(nodename, reference)
39. ______ removes a child node
.removeChild(nodename)
.remove(nodename)
.removeChild(nodename, reference)
.remove(nodename, reference)
40. To specify a list of Attributes in Schema use
dt:type=&quot;list&quot;
dt:type=&quot;enumeration&quot;
dt:type=&quot;enum&quot;
dt:type=&quot;values&quot;
41. Which one is used to mention the values Attribute list
dt:values=&quot;MintoPark CamacStreet Gariahat&quot;
dt:values=&quot;Minto Park Camac Street Gariahat&quot;
dt:values=&quot;Minto Park, CamacStreet, Gariahat&quot;
dt:values=&quot;MintoPark | CamacStreet | Gariahat&quot;
42. In Schema to validate that an element can contain only Text use
content=&quot;textOnly&quot;
content=&quot;text&quot;
content=&quot;#PCDATA&quot;
content=&quot;DATA&quot;
43. If "centre" is an attribute of a tag, then in Schema use __________ to validate it.
&lt;AttributeType=&quot;centre&quot;/&gt;
&lt;AttributeType=&quot;centre&quot;&gt;
&lt;attribute type=&quot;centre&quot;&gt;
&lt;attribute type=&quot;centre&quot;/&gt;
44. The valid Schema tag is
&lt;Element Type=&quot;roll&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
&lt;element type=&quot;roll&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
&lt;ElementType=&quot;roll&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
&lt;Element Type=&quot;roll&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;1&quot;/&gt;
45. Extension of a Schema file and an XML file is same
True
False
all of the above
None of the mentioned
46. In DTD to specify an Attribute List use
&lt;ATTLIST student centre (MintoPark|Gariahat|CamacStreet) &quot;MintoPark&quot;&gt;
&lt;ATTLIST student (MintoPark|Gariahat|CamacStreet) &quot;MintoPark&quot;&gt;
&lt;!ATTLIST student centre (MintoPark|Gariahat|CamacStreet) &quot;MintoPark&quot;&gt;
&lt;!ATTLIST student (MintoPark|Gariahat|CamacStreet) &quot;MintoPark&quot;&gt;
47. In DTD to validate that a tag can have only text use
&lt;!ELEMENT name (PCDATA)&gt;
&lt;!ELEMENT name (#PCDATA)&gt;
&lt;!ELEMENT name (#DATA)&gt;
&lt;!ELEMENT name (DATA)&gt;
48. DTD follows
Bottom Up approach
Top Down approach
all of the above
None of the mentioned
49. Elements from the HTML namespace are displayed as they would in ...............
DHTML
XML
HTML
DXML
50. An .................... block can be to embed a CSS style sheet within an XML document.
&lt;bk:Book&gt;
&lt;Element Type&gt;
&lt;HTML:STYLE&gt;
&lt;XML:STYLE&gt;
Submit