XML Multiple Choice Questions and Answers
XML Multiple Choice Questions and Answers
Q.3) 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" />
Q.15) Which XML DOM object represents a node in the node tree?
A. The node Object
B. The nodeList object
C. The document object
Q.18) Which is used about text data that should not be parsed by the XML
parser?
A. CDATA
B. PCDATA
C. None of the above
2. What is the correct syntax of the declaration which defines the XML version?:
A. <xml version="A.0" />
B. <?xml version="A.0"?>
C. <?xml version="A.0" />
D. None of the above
Ans: B
20. DTD includes the specifications about the markup that can be used within the document, the
specifications consists of all EXCEPT
A. the browser name
B. the size of element name
C. entity declarations
D. element declarations
Ans: A
28. In XML
A. the internal DTD subset is read before the external DTD
B. the external DTD subset is read before the internal DTD
C. there is no external type of DTD
D. there is no internal type of DTD
Ans: A
A. (i) is correct
B. (i),(ii) are correct
C. (ii),(iii) are correct
D. (i),(ii),(iii) are correct
Ans: D
31. To add the attribute named Type to the <customer> tag the syntax will be
A. <customer attribute Type=”exelent”>
B. <customer Type attribute =”exelent”>
C. <customer Type attribute_type=”exelent”>
D. <customer Type=” exelent” >
Ans: D
34. The default model for complex type, in XML schemas for element is
A. textOnly
B. elementOnly
C. no default type
D. both 1 & 2
Ans: B
35. Microsoft XML Schema Data types for Hexadecimal digits representating octates
A. UID
B. UXID
C. UUID
D. XXID
Ans: C
39. In simple Type Built into XML schema Boolean type holds
A. True, False
B. 1,0
C. both A. & B.
D. True/False and any number except 0
Ans: C
40. In simple type built into XML schema type flat has single precision of ________ floating point
A. 16 bit
B. 32 bit
C. 8 bit
D. 4 bit
Ans: C
43. The default model for complex type, in XML schemas for element is
A. textOnly
B. elementOnly
C. no default type
D. both a & b
Ans: B
47. To Bind the HTML elements with DSO we use _________ attribute
A. DATASOURCE
B. DATAFIELD
C. DATASRC
D. DATAFLD
Ans: A,C
48. To bind the HTML element <INPUT> Type in text with the datasource “ dsoCustomer” we use
A. <INPUT TYPE=”TEXT” DATAFIELD=”#dsoCustomer”>
B. <INPUT TYPE=”TEXT” DATASRC=” dsoCustomer”>
C. <INPUT TYPE=”TEXT” DATASRC=” #dsoCustomer” >
D. <INPUT TYPE=”TEXT” DATAFLD=” #dsoCustomer”>
Ans: C
49. XML DSOs has the property for the number of pages of data the recordset contains
A. count
B. number
C. pageCount
D. pageNumber
Ans: C
A. (i) is correct
B. (ii)is correct
C. both are correct
Ans: C
55. To match the root node in XMLT transform the syntax will be
A. <xsl:template match=”Document”>
B. <xsl:template match=”Root”>
C. <xsl:template match=”RootNode”>
D. <xsl:template match=” /”>
Ans: D
56. To match the specific XML elements child like of parent element is the syntax will be
A. <xsl:template match=”PLANET_NAME”>
B.<xsl:template match=”PLANET/NAME”>
C. <xsl:template match=”/NAME”>
D. <xsl:template match=”//”>
Ans: B
57. PI in XML specification stands for
A. C.14
B. priceless instruction
C. processing instruction
D. polymorphic inheritance
Ans: C
62. Identify the most accurate statement about the application of XML:
A. XML must be used to produce XML and HTML output.
B. XML cannot specify or contain presentation information.
C. XML is used to describe hierarchically organized information.
D. XML performs the conversion of information between different e-business applications.
Ans: C
63. The XSl formatting object which formats the data and caption of a table is
A. table
B. table-content
C. table-text
D. none of the above
Ans: D
64. The XSL formating object which holds the content of the table body
A. table
B. table-body
C. table-content
D. table-footer
Ans: B
65. The XSL formatting object which formats the data in a table
A. table
B. table-body
C. title
D. table-content
Ans: A
66. The XSL formating object use to hold the content of the label of a list item is
A. list-block
B. list item
C. list-item-body
D. list-item-label
Ans: D
67. The XSL formating object use to hold the contents of the body of a list item is
A. list-block
B. list item
C. list-item-body
D. list-item-label
Ans: C
70. The syntax for writing the minimum occurrence for an element is
A. <xsd:element ref=” note” min=” 0” />
B. <xsd:elements ref=” note” min=” 0” />
C. <xsd:elements ref=” note” minOccur=”0” />
D. <xsd:elements ref=” note” minOccurs=” 0” />
Ans: D
76. The transformation of XML document in to another type of document by XSLT can be done by
77: To match the root node in XMLT transform the syntax will be
A. <xsl:template match=”Document”>
B. <xsl:template match=”Root”>
C. <xsl:template match=”RootNode”>
D. <xsl:template match=” /” >
Ans: D
78: To match the specific XML elements in XMLT the syntax for given name “ rootnode” is
79. To match the specific XML elements child like of parent element is the syntax will be
A. <xsl:template match=”PLANET_NAME”>
B. <xsl:template match=” PLANET/NAME” >
C. <xsl:template match=” /NAME”>
D. <xsl:template match=” //”>
Ans: B
80. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” )
84: Which of the following specify that the order and content of "membership" is not important
85: Which of the following is used to specify the attribute list of an element
A. ATTLIST
B. ?ATTLIST
C. !ATTLIST
D. #ATTLIST
Ans: C
86: Which of the following instruct the browser which stylesheet to use
88: Which of the following XSLT Patterns is used to match any descendant nodes
A. /
B. //
C. .
D. ..
Ans: B
89: Which of the following XSLT Patterns is used to match the parent node
A. /
B. //
C. .
D. ..
Ans: D
A. for
B. for-all
C. for-each
D. in-turn
Ans: C
A. XML developed from HTML because WEB browsers became more powerful.
B. XML is designed as a replacement because SGML can not be used for document development.
C. XML builds on HTMLs ability to provide content to virtually any audience by adding the power of
intelligent content.
D. XML is the modern replacement for HTML and SGML, taking the good points from each, making both of
those languages obsolete.
Ans: C
A. Develop DTD, conduct a pilot project, create a modular library, train staff.
B. Train staff, convert legacy documents, develop DTD, create modular library.
C. Conduct pilot program, train staff, create modular library, develop DTD
D. Conduct pilot program, train staff, develop DTD, convert documents, purchace XML tools.
Ans: C
A. A Non-Common Name
B. A Non-Conforming Name
C. A Non-Colonized Name
D. None of the above
Ans: C
A. A set of names applied to specific spaces within an XML document, such as the head and body
B. A set of names representing a specific XML vocabulary
C. A set of names for XML documents pertaining to a particular vocabulary
D. None of the above.
Ans: B