Olete.in
Articles
Mock Tests
🧪 XML MCQ Quiz Hub
XML Mcq Question Set 3
Choose a topic to test your knowledge and improve your XML skills
1. Which are the main features of XML?
Text data description
Human- and computer-friendly format
Handles data in a tree structure having one-and only one-root element
All Mentioned above
2. Attribute standalone=no should be included in XML declaration if a document:
is linked to an external XSL stylesheet
has external general references
has processing instructions
has an external DTD
3. The XML format has a simpler set of ¦¦¦¦¦¦¦¦ than HTML.
loader rule
parsing rules
generator rule
logical rule
4. Elements from the HTML namespace are displayed as they would in ¦¦¦¦¦¦¦..
DHTML
XML
HTML
DXML
5. What are the advantages of DOM Parsing?
The DOM is a common interface for manipulating document structures
One of its design goals is that Java code written for one DOM-compliant parser should run on any other DOM-compliant parser without changes
Both of the above
none of the above
6. A tool for reading XML documents is popularly called a
XML delimiters
XML processor
XML parser
Both b and c
7. Abbreviate the term DOM?
Developed Object Model
Document Object Model
Document Oriented Model
none of the above
8. Which of the following is not a function of XML?
Structure Information
Style Information
Transport Information
Store Information
9. What are the components of an XML document?
Header, Root Element
Prolog, Root Element, Miscellaneous
Prolog, Header, Body
Prolog, Root Element
10. Which are the techniques for defining the structure of a specific type of XML documents?
Schema
DTD
Both A & B
none of the above
11. An ¦¦¦¦¦¦.. block can be to embed a CSS style sheet within an XML document.
bk:Book
Element Type
HTML:STYLE
XML:STYLE
12. Which language is Extensible Markup Language (XML) similar?
HTML
PHP
avaScript
Wordpress
13. Which is used about text data that should not be parsed by the XML parser?
CDATA
PCDATA
None of the above
All of the Mentioned
14. Find the correct syntax of the declaration which defines the XML Version?
< ?xml version= "1.0" ? >
< xml version="1.0"/ >
< ?xml version="1.0" / >
none of the above
15. Which allows hyperlinks to point to specific parts (fragments) of XML documents?
XPath
XSLT
XLink
Xpointer
16. An XML parser converts an XML document into an XML DOM object, which can then be manipulated with JavaScript.
True
False
all of the above
None of the mentioned
17. The getElementsByTagName() method is used to retrieve data from an XML document.
True
False
all of the above
None of the mentioned
18. The following example shows which XML Syntax rule, < note date=" 12/11/2007"> < to>Tove< /to> < from>Jani< /from> < /note>
XML Attribute Values Must be Quoted
All XML Elements Must Have a Closing Tag
XML Tags are Case Sensitive
XML Elements Must be Properly Nested
19. XML is ?
Platform Independent
Language Independent
Both A &amp; B
none of the above
20. XML is a programming language like C# or Java.
True
False
all of the above
None of the mentioned
21. Is this a 'well formed' XML document? < ?xml version="1.0"? > < note > < to age="29" >John< /to > < from >Smiley< / from > < / note >
True
False
all of the above
None of the mentioned
22. Which character in the XML Element will generate an error because the parser interprets it as the start of a new element?
&quot; &lt; &quot;
&quot;&amp;&quot;
Both A &amp; B
none of the above
23. Which is not a W3C-recommended specification?
SAX
DOM
Both A &amp; B
none of the above
24. XML is the most common tool for data transmissions between all sorts of applications
True
False
all of the above
None of the mentioned
25. Which is a software- and hardware-independent tool for carrying information?
HTML
XML
Both A &amp; B
none of the above
26. Which Characters are illegal in XML elements?
&quot; &lt; &quot;
&quot;&amp;&quot;
Both A &amp; B
none of the above
27. What is XML used to simplify?
Data storage
Data sharing
Both A &amp; B
none of the above
28. Which are the XML Syntax rules?
All XML Elements Must Have a Closing Tag
XML Tags are not Case Sensitive
XML Elements Must be Properly Nested
Both A &amp; C
29. XML documents must contain a root element; this element is "the parent" of all other elements
True
False
all of the above
None of the mentioned
30. XML is designed to store data and _____.
Design
Verify
Transport
Both A &amp; B
31. In which application can XML be used for marking up documents for specialized applications, such as e-commerce, scientific documents, Mathematical formula and e-books?
Data exchange between computer systems
Data storage
Specialized publishing
none of the above
32. In XML which internet languages are markup languages for handheld devices?
WAP
WML
RSS
Both A &amp; B
33. XML attribute values must always be enclosed in quotes
True
False
all of the above
None of the mentioned
34. XML is designed to carry data, and to display data
True
False
all of the above
None of the mentioned
35. In XML document comments are given as?
&lt; !-- --!&gt;
&lt; !-- ?
&lt; /-- --&gt;
&lt; ?-- ?
36. XML is a text-based markup language derived from?
SGMA
SHML
SGML
DHML
37. Which of the following is true?
XML allows you to create your own self-descriptive tags, or language, that suits your application.
XML allows you to create your own self-descriptive tags, or language, that suits your application.
XML was developed by an organization called the World Wide Web Consortium (W3C) and is available as an open standard.
All of the above
38. Which of the following is false?
XML cannot be used for offloading and reloading of databases.
XML can easily be merged with style sheets
XML can be used to store and arrange the data
XML can be used to exchange the information between organizations and systems
39. XML is a markup language that defines set of rules for encoding documents in a format that is?
Human-readable
Machine-readable
Both human-readable and machine-readable
none of the above
40. The tags message mark?
the start of the XML code
the end of the XML code
the start and the end of the XML code
none of the above
41. XML First published on?
1997
1998
1999
2000
42. XML was developed by an organization called?
w2c
w4c
w3c
WWWC
43. Which of the following is the correct syntax of the declaration of XML version?
&lt;xml version=&quot;1.0&quot; /&gt;
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;?xml version=&quot;1.0&quot; /&gt;
none of the above
44. _______ contains details that prepare an XML processor to parse the XML document.
XML document
XML declaration
Both A and B
none of the above
45. It informs the parser whether the document relies on the information from an external source?
Version
Encoding
Encoding
Standalone
46. What is default value for Standalone?
Yes
No
Can&#039;t say
No default value
47. Which of the following is not correct Parameter_value for encoding?
ISO-10646-UCS-2
ISO-10646-UCS-4
Shift_JIA
EUC-JP
48. Which is the parameter value for version?
0.1
1
1.1
2000
49. Which of the following are correct rule for XML declaration?
If the XML declaration is included, it must contain version number attribute.
Either single or double quotes may be used.
The XML declaration has no closing tag
All of the above
50. What is XML declaration with no parameters?
&lt;?xml &gt;
&lt;?xml /&gt;
&lt;xml &gt;
&lt;xml ?&gt;
Submit