Olete.in
Articles
Mock Tests
🧪 XML MCQ Quiz Hub
XML Mcq Question Set 1
Choose a topic to test your knowledge and improve your XML skills
1. What is the correct syntax of the declaration which defines the XML version?:
<xml version="A.0" />
<?xml version="A.0"?>
<?xml version="A.0" />
none of the above
2. Which statement is true?
All the statements are true
All XML elements must have a closing tag
All XML elements must be lower case
All XML documents must have a DTD
3. Is it easier to process XML than HTML?
Yes
No
Somtimes
Cant say
4. Which of the following programs support XML or XML applications?:
Internet Explorer 5.5
Netscape D.7
RealPlayer.
Both a and b
5. Kind of Parsers are
well-formed
well-documented
non-validating and validating
none of the above
6. Well formed XML document means
it contains a root element
it contain an element
it contains one or more elements
must contain one or more elements and root element must contain all other elements
7. Comment in XML document is given by
<?-- -->
<!-- --!>
<!-- -->
</-- -- >
8. When processing an output XML, "new line" symbols
are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.
are converted to single LF symbol
are converted to single CR symbol
are discarded
9. Which of the following strings are a correct XML name?
_myElement
my Element
#myElement
None of the above
10. Which of the following strings are a correct XML name?
xmlExtension
xslNewElement
XMLElement#123
All of the Mentioned
11. Which of the following XML fragments are well-formed?
<?xml?>
<?xml version="A.0"?>
<?xml encoding="JIS"?>
<?xml encoding="JIS" version="A.0"?>
12. What are the predefined attributes
xml:lang
xml:space
both
None.
13. Valid XML document means (most appropriate)
the document has root element
the document contains atleast one or more root element
the XML document has DTD associated with it & it complies with that DTD
Each element must nest inside any enclosing element property
14. XML uses the features of
HTML
XHTML
VML
SGML
15. XML document can be viewed in
IE C.0
IE B.0
IE 6.0
IE X.0
16. There is a way of describing XML data, how?
XML uses a DTD to describe the data
XML uses XSL to describe data
XML uses a description node to describe data
Both A and C
17. What does DTD stand for?
Direct Type Definition
Document Type Definition
Do The Dance
Dynamic Type Definition
18. DTD includes the specifications about the markup that can be used within the document, the specifications consists of all EXCEPT
the browser name
the size of element name
entity declarations
element declarations
19. Which of the following XML documents are well-formed?
<firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>
<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>
<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>
</firstElement>some text goes here </secondElement>another text goes here <firstElement>
20. Which of the following XML fragments are well-formed?
<myElement myAttribute="someValue"/>
<myElement myAttribute=someValue/>
<myElement myAttribute=’someValue’>
<myElement myAttribute="someValue’/>
21. How can we make attributes have multiple values:
<myElement myAttribute="value1 value2"/>
<myElement myAttribute="value1" myAttribute="value2"/>
<myElement myAttribute="value1, value2"/>
attributes cannot have multiple values
22. The use of a DTD in XML development is:
required when validating XML documents
no longer necessary after the XML editor has been customized
used to direct conversion using an XSLT processor
a good guide to populating a templates to be filled in when generating an XML document automatically
23. Parameter entities can appear in
xml file
dtd file
xsl file
Both 1 and 2
24. 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
25. In XML
the internal DTD subset is read before the external DTD
the external DTD subset is read before the internal DTD
there is no external type of DTD
there is no internal type of DTD
26. Disadvantages of DTD are (i)DTDs are not extensible (ii)DTDs are not in to support for namespaces (iii)there is no provision for inheritance from one DTDs to another
(i) is correct
(i),(ii) are correct
(ii),(iii) are correct
(i),(ii),(iii) are correct
27. To use the external DTD we have the syntax
<?xml version=”A.0” standalone=”no”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
<?xml version=”A.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
<?xml version=”A.0” standalone=”no”?> <! DOCTYPE DOCUMENT “order.dtd”?>
<?xml version=”A.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>
28. To add the attribute named Type to the <customer> tag the syntax will be
&lt;customer attribute Type=”exelent”&gt;
&lt;customer Type attribute =”exelent”&gt;
&lt;customer Type attribute_type=”exelent”&gt;
&lt;customer Type=” exelent” &gt;
29. The syntax for parameter entity is
&lt;! ENTITY % NAME DEFINITION&gt;
&lt; ENTITY % NAME DEFINITION&gt;
&lt;! ENTITY $ NAME DEFINITION&gt;
&lt; ENTITY % NAME DEFINITION&gt;
30. You can name the schema using the name attribute like
&lt;schema attribute=”schema1”&gt;
&lt;schema nameattribute=”schema1”&gt;
&lt;schema nameattri=”schema1”&gt;
&lt;schema name=”schema1”&gt;
31. The default model for complex type, in XML schemas for element is
textOnly
elementOnly
no default type
both 1 &amp; 2
32. Microsoft XML Schema Data types for Hexadecimal digits representating octates
UID
UXID
UUID
XXID
33. A schema describes (i) grammer (ii) vocabulary (iii) structure (iv) datatype of XML document
(i) &amp; (ii) are correct
(i),(iii) ,(iv) are correct
(i),(ii),(iv) are correct
(i),(ii),(iii),(iv) are correct
34. Microsoft XML Schema Data Type “ boolean” has values
True ,False
True ,False or 1,0
1,0
any number other then zero and zero
35. Simple type Built into Schema “ data’ represent a data in
MM-DD-YY
Dd-MM-YY
YY-MM-DD
YYYY-MM-DD
36. In simple Type Built into XML schema Boolean type holds
True, False
1,0
both A. &amp; B.
True/False and any number except 0
37. In simple type built into XML schema type flat has single precision of ________ floating point
16 bit
32 bit
8 bit
4 bit
38. The XML DOM object is
Entity
Entity Reference
Comment Reference
Comment Data
39. Attribute of the document interface in DOM is/are (i)doctype (ii)implementation (iii)documentElement which are read only attributes
(i) only
(ii) only
(ii),(iii) only
All of the mentioned
40. To create a choise in XML schemas, we use the
&lt;xsd:select&gt; element
&lt;xsd:multi&gt; element
&lt;xsd:choise&gt; element
&lt;xsd:single&gt; element
41. To create a data island we use the _____________HTML element
&lt;XML&gt;
&lt;dataisland&gt;
&lt;Island&gt;
&lt;XMLIsland&gt;
42. To Bind the HTML elements with DSO we use _________ attribute
DATASOURCE
DATAFIELD
DATASRC
DATAFLD
43. To bind the HTML element <INPUT> Type in text with the datasource “ dsoCustomer” we use
&lt;INPUT TYPE=”TEXT” DATAFIELD=”#dsoCustomer”&gt;
&lt;INPUT TYPE=”TEXT” DATASRC=” dsoCustomer”&gt;
&lt;INPUT TYPE=”TEXT” DATASRC=” #dsoCustomer” &gt;
&lt;INPUT TYPE=”TEXT” DATAFLD=” #dsoCustomer”&gt;
44. XML DSOs has the property for the number of pages of data the recordset contains
count
number
pageCount
pageNumber
45. Whats so great about XML?
Easy data exchange
High speed on network
Only B.is correct
Both A. &amp; B.
46. For XML document to be valid
document need to be well formed also
document need not to be well formed
document need to be well formed &amp; valid
document validity has no relationship with well formedness
47. A textual object is a well formed XML document if (i) Taken as a whole it matches the production labeled document. (ii) Each of the parsed entity which is referenced directly or indirectly within the document can be well formed
(i) is correct
(ii)is correct
both are correct
None of the mentioned
48. <?xml version=” A.0” standalone=” yes” encoding=”UTF-8” ?>
it shows that the version is A.0
shows thatit is standalone
the standalone is wrong
version attribute is not in XML
49. The attribute used to define a new namespace is
XMLNS
XmlNameSpace
Xmlns
XmlNs
50. To match the root node in XMLT transform the syntax will be
&lt;xsl:template match=”Document”&gt;
&lt;xsl:template match=”Root”&gt;
&lt;xsl:template match=”RootNode”&gt;
&lt;xsl:template match=” /”&gt;
Submit