Google News
logo
XML - Quiz(MCQ)
A)
eXtra Modern Link
B)
X-Markup Language
C)
eXtensible Markup Language
D)
Example Markup Language

Correct Answer :   eXtensible Markup Language

A)
XML uses XSL to describe data
B)
XML uses a DTD to describe the data
C)
XML uses a description node to describe data
D)
None of the Above

Correct Answer :   XML uses a DTD to describe the data

A)
True
B)
False
C)
None of the Above
D)
--

Correct Answer :   False

4 .
What is the correct syntax of the declaration which defines the XML version?
A)
<?xml version="1.0"?>
B)
<?xml version="1.0" />
C)
<xml version="1.0"?/>
D)
<?xml version="1.0"?/>

Correct Answer :  

<?xml version="1.0"?>

A)
4
B)
3
C)
2
D)
1

Correct Answer :   1

A)
Document type Determination
B)
Document Text Definition
C)
Document Type Definition
D)
Determination Type Defination

Correct Answer :   Document Type Definition

A)
All XML elements must be properly closed.
B)
All XML documents must have a DTD.
C)
All XML elements must be lower case.
D)
All of the Above

Correct Answer :   All XML elements must be properly closed.

8 .
Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to>Vani</to>
<from>Anshu</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
A)
Yes
B)
No
C)
None of the Above
D)
--

Correct Answer :   Yes

9 .
Which special character is NOT used in XML?
A)
?
B)
<
C)
>
D)
$

Correct Answer :   $

10 .
Which is not a correct name for an XML documents?
A)
<h2>
B)
<1dollar>
C)
<note>
D)
All 3 names are incorrect

Correct Answer :  

<1dollar>

A)
XML tags are case sensitive
B)
XML documents must have a root tag
C)
XML elements must be properly nested
D)
All of the Above

Correct Answer :   All of the Above

A)
XML tags are case sensitive
B)
White-space is not preserved in XML
C)
XML documents must have a root tag
D)
XML elements must be properly nested

Correct Answer :   White-space is not preserved in XML

13 .
Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Vani</to>
<from>Anshu</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
A)
Yes
B)
No
C)
None of the Above
D)
--

Correct Answer :   No

14 .
Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age="29">Vani</to>
<from>Anshu</from>
</note>​
A)
Yes
B)
No
C)
None of the Above
D)
--

Correct Answer :   Yes

15 .
Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age=29>Tove</to>
<from>Jani</from>
</note>
A)
Yes
B)
No
C)
None of the Above
D)
--

Correct Answer :   No

A)
True
B)
False
C)
None of the Above
D)
--

Correct Answer :   True

17 .
How is an empty XML element defined?
A)
<sample/>
B)
<sample></sample>
C)
All of the Above
D)
None of the Above

Correct Answer :   All of the Above

A)
Tags
B)
Elements
C)
Identifiers
D)
Attributes

Correct Answer :   Attributes

A)
True
B)
False
C)
None of the Above
D)
--

Correct Answer :   False

20 .
Which is not a correct name for an XML element?
A)
<age>
B)
<NAME>
C)
<first name>
D)
Above All 3 names are incorrect

Correct Answer :  

<first name>

21 .
Which is a correct name for an XML element?
A)
<Name>
B)
<7eleven>
C)
<phone number>
D)
<xmldocument>

Correct Answer :  

<Name>

A)
The nodeList object
B)
The document object
C)
The node object
D)
None of the Above

Correct Answer :   The node object

A)
True
B)
False
C)
None of the Above
D)
--

Correct Answer :   True

A)
An XML attribute
B)
An XML document
C)
An XML element
D)
None of the Above

Correct Answer :   An XML document

A)
eXtra Style Language
B)
eXpandable Style Language
C)
eXtensible Style Listing
D)
eXtensible Stylesheet Language

Correct Answer :   eXtensible Stylesheet Language

26 .
Which of the following XML fragments is well-formed?
A)
<customer id="3456"><address/><zip code="3456"/></customer>
B)
<customer id=3456><name>John Smith</name></customer>
C)
Both (A) and (B)
D)
None of the Above

Correct Answer :  

<customer id="3456"><address/><zip code="3456"/></customer>

A)
Entities define shortcuts to standard elements
B)
Entities define shortcuts to standard attributes
C)
Entities define shortcuts to standard text or special characters
D)
None of the Above

Correct Answer :   Entities define shortcuts to standard text or special characters

28 .
What is a correct way of referring to a stylesheet called "mystyle.xsl" ?
A)
<stylesheet type="text/xsl" href="mystyle.xsl" />
B)
<link type="text/xsl" href="mystyle.xsl" />
C)
<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?> 
D)
None of the Above

Correct Answer :  

<?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?> 

A)
Attributes must always be present
B)
Attributes must occur in defined order
C)
None of the other two statements are true
D)
None of the Above

Correct Answer :   None of the other two statements are true

30 .
For the XML parser to ignore a certain section of your XML document, which syntax is correct?
A)
<xml:CDATA[ Text to be ignored ]>
B)
<CDATA> Text to be ignored </CDATA>
C)
<PCDATA> Text to be ignored </PCDATA>
D)
<![CDATA[ Text to be ignored ]]>

Correct Answer :  

<![CDATA[ Text to be ignored ]]>

A)
It is a metalanguage.
B)
It has a fixed tag set.
C)
It is a presentation language.
D)
It is a single predefined markup language.

Correct Answer :   It is a metalanguage.

32 .
The following is the syntax for NameSpaces.
A)
Xmln:[prefix]=“[location]”
B)
Xmln:[location]=“[prefix ]”
C)
Xmlns:[prefix]=“[location]”
D)
Xmlns:[location]=“[prefix ]”

Correct Answer :  

Xmlns:[prefix]=“[location]”

A)
XML uses XSL to describe the data
B)
XML uses Schema Definition to describe the data
C)
XML uses Document Type Definition to describe the data
D)
Both (B) and (C)

Correct Answer :   Both (B) and (C)

A)
XLink
B)
Xpath
C)
XSLT
D)
XPointer

Correct Answer :   Xpath

A)
XSLT
B)
XLink
C)
Xpath
D)
XPointer

Correct Answer :   XPointer

A)
CDATA
B)
HDATA
C)
PCDATA
D)
None of the Above

Correct Answer :   CDATA

A)
RSS
B)
OWL
C)
WSDL
D)
RDF

Correct Answer :   WSDL


Explanation :

* WSDL stands for Web Services Description Language
* WSDL is an XML-based language for describing Web services.
* WSDL is a W3C recommendation