XML MCQ
XML MCQ
D. X-Markup Language
Ans: B
2. What is the correct syntax of the declaration which defines the XML version?:
B. <?xml version="A.0"?>
Ans: B
Ans: B
A. Yes
B. No
C. Somtimes
D. Cant say
Ans: A
5. Which of the following programs support XML or XML applications?:
B. Netscape D.7
C. RealPlayer.
D. both A and B
Ans: D
A. well-formed
B. well-documented
Ans: C
B. it contain an element
D. must contain one or more elements and root element must contain all other elements
Ans: D
A. <?-- -->
B. <!-- --!>
C. <!-- -->
D. </-- -- >
Ans: C
D. are discarded
Ans: B
A. _myElement
B. my Element
C. #myElement
Ans: A
A. xmlExtension
B. xslNewElement
C. XMLElement#123
D. All
Ans: B
A. <?xml?>
B. <?xml version="A.0"?>
C. <?xml encoding="JIS"?>
Ans: B
A. xml:lang
B. xml:space
C. both
D. none.
Ans: C
A. well-formed
B. validating
C. non-validating
D. Both B & C
Ans: D
C. the XML document has DTD associated with it & it complies with that DTD
Ans: C
A. HTML
B. XHTML
C. VML
D. SGML
Ans: D
A. IE C.0
B. IE B.0
C. IE 6.0
D. IE X.0
Ans: C
D. Both A and C
Ans: D
C. Do The Dance
Ans: B
20. DTD includes the specifications about the markup that can be used within the document, the
specifications consists of all EXCEPT
C. entity declarations
D. element declarations
Ans: A
</firstElement>
B. <firstElement>some text goes here</firstElement>
</secondElement>
<firstElement>
Ans: B
A. <myElement myAttribute="someValue"/>
B. <myElement myAttribute=someValue/>
C. <myElement myAttribute=’someValue’>
D. <myElement myAttribute="someValue’/>
Ans: A
Ans: D
Ans: C
Ans: A
A. xml file
B. dtd file
C. xsl file
D. Both 1 and 2
Ans: B
Ans: D
28. In XML
A. (i) is correct
Ans: D
Ans: A
31. To add the attribute named Type to the <customer> tag the syntax will be
Ans: A
33. You can name the schema using the name attribute like
A. <schema attribute=”schema1”>
B. <schema nameattribute=”schema1”>
C. <schema nameattri=”schema1”>
D. <schema name=”schema1”>
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
36. A schema describes
(i) grammer
(ii) vocabulary
(iii) structure
Ans: D
A. True ,False
C. 1,0
Ans: C
A. MM-DD-YY
B. Dd-MM-YY
C. YY-MM-DD
D. YYYY-MM-DD
Ans: D
39. In simple Type Built into XML schema Boolean type holds
A. True, False
B. 1,0
C. both A. & B.
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
A. Entity
B. Entity Reference
C. Comment Reference
D. Comment Data
Ans: B
(i)doctype
(ii)implementation
(iii)documentElement
A. (i) only
B. (ii) only
C. (ii),(iii) only
D. all
Ans: D
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
A. <xsd:select> element
B. <xsd:multi> element
C. <xsd:choise> element
D. <xsd:single> element
Ans: C
A. Entity
B. Entity Reference
C. Comment Reference
D. Comment Data
Ans: B
A. <XML>
B. <dataisland>
C. <Island>
D. <XMLIsland>
Ans: A
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
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
D. Both A. & B.
Ans: D
Ans: C
(ii) Each of the parsed entity which is referenced directly or indirectly within the document can be well
formed
A. (i) is correct
B. (ii)is correct
Ans: C
Ans: C
A. XMLNS
B. XmlNameSpace
C. Xmlns
D. XmlNs
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”>
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
A. C.14
B. priceless instruction
C. processing instruction
D. polymorphic inheritance
Ans: C
A. the design demands that all elements use both start and end tags
Ans: B
Ans: C
A. list-block
B. list-item
C. list-item-body
D. list-item-label
Ans: A
A. XMLNS
B. XmlNameSpace
C. Xmlns
D. XmlNs
Ans: C
62. Identify the most accurate statement about the application of XML:
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
Ans: B
Ans: D
70. The syntax for writing the minimum occurrence for an element is
Ans: D
Ans: C
72. To use XSLT in an XML system:
A. the input and output of the XSLT processor must be unparsed XML documents
B. the input and output of the XSLT processor must be a hierarchical tree representing an XML
document
D. the XSLT processor must be given the DTD as well as the XML document instance
Ans: B
A. XPath identifies the order or path of processing to be followed as the XSL language is processed
B. XPath identifies locations in XML data to be transformed in the source tree and the locations to be
generated in output tree specified in XSL translation prescriptions
C. XPath identifies the path to be followed in the execution of XSL translation prescriptions
D. XPath specifies which XSL transform files are to be used in the translation of XML
Ans: B
74. Which statement correctly describes the capabilities of the XSLT language?
A. XSLT uses the DTD to determine how XML documents will be translated
B. XSLT specifies how a hierarchical trees, representable by an XML document may be translated into
non-hierarchical formats
C. XSLT specifies how a hierarchical tree, representable by an XML document, may be translated into
another hierarchical tree, also representable by an XML document
Ans: C
76. The transformation of XML document in to another type of document by XSLT can be done by
Ans: C
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”>
Ans: D
78: To match the specific XML elements in XMLT the syntax for given name “ rootnode” is
Ans: C
79. To match the specific XML elements child like of parent element is the syntax will be
A. <xsl:template match=”PLANET_NAME”>
Ans: B
80. InXSLT style sheet we have syntax to match elements with id as (if id is “ change” )
D. <xsl:template match-id=”Change”>
Ans: A
81. To match the text node (in XSLT) the syntax will be
Ans: D
B. zmarkup elements
C. markup data
Ans: A
B. it contain an element
Ans: D
84: Which of the following specify that the order and content of "membership" is not important
Ans: D
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
Ans: C
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
Ans: B
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
Ans: A
Ans: C
A. A Non-Common Name
B. A Non-Conforming Name
C. A Non-Colonized Name
Ans: A
C. A namespace that is referenced with the xmlns attribute, but without a prefix
Ans: C
A. A set of names applied to specific spaces within an XML document, such as the head and body
Ans: B
C. Any names for elements and attributes within the DTD to which the namespace refers
Recommend this on