R4RIN
Articles
Java 8
MCQS
XML MCQ Quiz Hub
XML MCQ
Choose a topic to test your knowledge and improve your XML skills
1. What XML stands for?
Extra Marked Language
Extensible Markup Language
Extensible Marked Literal
Extra Markup Language
2. Which component of JDOM Parser represents DOM tree?
Document
Element
Attribute
Text
3. Which of the following XPath expression selects attributes?
.
..
@
//
4. When to use a SAX Parser?
You can process the XML document in a linear fashion from the top down.
You are processing a very large XML document whose DOM tree would consume too much memory.
The problem to be solved involves only part of the XML document
All of the above.
5. What DOM stands for?
Direct Object Model
Document Object Modeling
Document Object Model
Document Output Model
6. Which of the following is true about XML?
XML is technology independent. It can be used by any technology for data storage and transmission purpose.
XML uses simple text format. It is human readable and understandable.
Using XSD, DTD and XML structure can be validated easily.
All of the above.
7. Which of the following is true about XPath?
XPath is an official recommendation of the World Wide Web Consortium (W3C).
It defines a language to find information in an XML file.
Both of the above.
None of the above.
8. Which of the following XPath expression selects the parent of the current node?
.
..
./
//
9. When to use a DOM Parser?
You need to know a lot about the structure of a document.
You need to move parts of the document around
You need to use the information in the document more than once.
All of the above.
10. Which of the following statements is not true about XML Schemas
They are used to define the content and structure of data. b. c.
They define a set of symbols and the relationships of those symbols.
They are themselves XML documents.
They have their own syntax.
11. What is not true about XSLT?
XSLT is a declarative transformation language.
XSLT uses a set of rules that govern how a document is to be materialized is created.
XSLT uses a set of procedures that specify how a document is to be programmed.
XSLT is used to transform the input document into another document.
12. Which of the following is not a XML storage option ?
Native storage as XML data type
Mapping between XML and relational storage
Small object storage
None of the Mentioned
13. White spaces in XML includes
Things like space characters, new lines and tabs
Only spaces
Space between two double quotes
None of these
14. XPATH used to
Address your documents by specifying a location path
Address the server
Store the IP address of the server
None of these
15. The tags elements in XML are
case-insensitive
case-sensitive
browser dependent
none of these
16. Node in XML is
any part of the document whether it is elements, attribute or otherwise
referred only to the attributes
referred to the top element in the document
none of these
17. XML stands for ______________.
Extensible Markup Language
Extended Mashup Language
Extensible Mashup Language
None of these
18. XML is much more similar like __________.
HTML
CSS
C Programming
JavaScript
19. Which of the following is not a function of XML ?
Structure Information
Style Information
Transport Information
Store Information
20. XML deals with storage and ____________ transport of data.
Minify
Transport
Design
Filter
21. XML with correct syntax is "_________" XML.
Well Parametarized
Well Formed
Mature
None of these
22. XML validated against a __________ is considered as Valid XML.
JQUERY
PARSER
CFG
DTD
23. DTD Stands for _________.
Document Transport Direction
Document Transcript Definition
Document Type Definition
None of these
24. W3C supports an XML-based alternative to DTD, called _______.
XML Schema
HTML DOM
XML Parser
None of these
25. __________ is used to check XML for syntax errors.
XML Validator
XML Parser
XML Browser
None of these
26. Below line of code is used for ? <?xml version="1.0" encoding="ISO-8859-1"?>
DTD Declaration
XML Starting Line
XML Declaration
None of these
27. Guess which version of XML is used ? <?xml version="1.0" encoding="ISO-8859-1"?>
1st
3rd
4th
2nd
28. Which of the Node is considered as root node ? <?xml version="1.0" encoding="ISO-8859-1"?> <book> <bname>XML Tutorials</bname> <pages>100</pages> <price>$300.00</price> </book>
&lt;pages&gt;
&lt;price&gt;
&lt;book&gt;
&lt;bname&gt;
29. Which of the following statement is false if we consider above XML document ? <?xml version="1.0" encoding="ISO-8859-1"?> <book> <bname>XML Tutorials</bname> <pages>100</pages> <price>$300.00</price> </book>
Document Syntax is Self Explanatory
XML document forms a tree structure
XML document can have more than one book
It is a document that refers a single book
30. How many nodes and attributes are there in the document ? <book category="Web"> <bname>XML Tutorials</bname> <pages>100</pages> <price>$300.00</price> </book>
4 Nodes and 1 Attribute
3 Nodes and 2 Attributes
2 Nodes and 1 Attribute
4 Nodes and 2 Attributes
31. Point out the error in the following xml - <book category="Web"> <bname>XML Tutorials</bname> <pages>100</pages> <price>$300.00</Price> </book>
No Case Sensitive
Not having Closing Tag
No Nesting of Elements
None of these
32. Point out the error in following XML document - <messages> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <message>Sample Message 1</messge> <messages>
No Corresponding Closing Tag
No Case Sensitive Tags
No Attribute present
None of these
33. Point out the error in the following xml document - <?xml version="1.0" encoding="ISO-8859-1"?> <messages>Sample Message<messages> <messages>Sample Message<messages> <messages>Sample Message<messages>
Does not have Attribute
Must have DTD
Must have One Root Node
None of these
34. Point out the errors in the following xml document - <notes> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> <note date=12/11/2007> <to>Tove</to> <from>Jani</from> </note> </notes>
XML Elements Must be Properly Nested
XML Documents Must Have a Root Element
XML Attributes must be quoted
None of these
35. Which of the following is the communication protocol that sets the standard used by every computer that access web-based information?
HTTP
XML
HTTP
DML
36. DTD's are
Part of Name spaces
Document type declaration in XML
Ways to create templates for out does type
None of these
37. The words Document Node, Nodelist, Element Node, Named Node Map etc. are
Objects
Interfaces
Elements
Attributes
38. Which of the following creates push button?
RESET
RADIO
INPUT
CHECK BOX
39. Scheme is
a global name space
read only for all practical purposes
template written in XML and can be modified at runtime
None of These
40. XML
can&#039;t be used as a database
XML is not a database, it is language
can be used as a database
None of These
41. Web links are stored within the page itself and when you wish to "jump" to the page that is linked, we select the hotspot or anchor. This technique is called
hypertext
hypermedia
both (a) and (b)
anchoring
42. Well formed XML
is full of chart&#039;s
is full of formula&#039;s
meets certain grammatical rules outlined in the XML 1.0 specification
doesn&#039;t contain DTD&#039;s
43. XSL is
an XML based language to create style sheets
extensible solution language
a language which is not used in XML
extended stylesheet language
44. How DOM differs from SAX?
SAX is event driven and requires less space
DOM and SAX are packages
DOM is not event driven and builds up the whole memory d.
None of these
45. XML is a/an
declarative language
imperative language
standard
none of these
46. Namespace
is a querying language
provides the spaces in the names
distinguishes one XML vocabulary from another
None of These
47. Document type declaration and document type definition are
different terms
uncertain
same
can&#039;t say
48. XSLT is
used for session tracking in XML
an extensible stylesheet language and is used for formatting
an extended stylesheet language is used for formatting
none of these
49. MSXML is
a Microsoft language
XML parser that ships with IE 5.0
used for interacting with XML
Both (b) &amp; (c)
50. What is XML?
Like SGML, Extended Markup Language
Subset of SGML, Extensible Markup Language
Superset of SGML, Extendable Markup Language
None of These
51. Attributes in XML are
a way of attaching characteristics or properties to elements of a document
child nodes
elements in XML
None of These
52. Document Object Model (DOM) is a
coding style
specification
a parser
none of these
53. What standard, protocol or language was generalized to become a standard protocol for sending messages of any type, using any protocol?
SOAP
SGML
SQL
ADO
54. ADO.NET provides the ability to create and process in-memory databases called:
views.
relations
tables
datasets
55. An XML component that defines the structure of a document is known as a(n):
DOCTYPE.
DTD.
#PCDATA.
HTML Stylesheet.
56. XSLT processors evaluate each statement in the context of the match that has been made. That is, XSLT processors are:
context oriented.
procedural oriented.
object oriented.
relational oriented.
57. XML is:
a subset of SGML only.
a hybrid of document processing and database processing only.
a standardized yet customizable way to describe the content of documents only.
XML is all of the above.
58. The document that is used by XSLT to indicate how to transform the elements of the XML document to another format is a(n):
HTML page.
DOCTYPE procedure.
stylesheet.
stored procedure.
Submit