Monday, February 28, 2011

MCQ: XML

What does XML stand for?
A. eXtra Modern Link
B. eXtensible Markup Language
C. Example Markup Language
D. X-Markup Language
ANSWER : B


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. None of the above
ANSWER : B


Is it easier to process XML than HTML?
A. Yes
B. No
C. Somtimes
D. Cant say
ANSWER : A

Which of the following programs support XML or XML applications?:
A. Internet Explorer 5.5
B. Netscape 4.7
C. RealPlayer.
D. both 1 and 2
ANSWER : D

Kind of Parsers are
A. well-formed
B. well-documented
C. non-validating and validating
D. none of the above
ANSWER : C

Well formed XML document means
A. it contains a root element
B. it contain an element
C. it contains one or more elements
D. must contain one or more elements and root element must contain all other elements
ANSWER : D

Comment in XML document is given by
A. <?-- -->
B. <!-- --!>
C. <!-- -->
D. </-- -- >
ANSWER : C

When processing an output XML, "new line" symbols
A. are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.
B. are converted to single LF symbol
C. are converted to single CR symbol
D. are discarded
ANSWER : B

Which of the following strings are a correct XML name?
A. _myElement
B. my Element
C. #myElement
D. None of the above
ANSWER : A

Which of the following strings are a correct XML name?
A. xmlExtension
B. xslNewElement
C. XMLElement#123
D. All
ANSWER : B

Which of the following XML fragments are well-formed?
A. <?xml?>
B. <?xml version="1.0"?>
C. <?xml encoding="JIS"?>
D. <?xml encoding="JIS" version="1.0"?>
ANSWER : B

What are the predefined attributes
A. xml:lang
B. xml:space
C. both
D. none.
ANSWER : C


Valid XML document means (most appropriate)
A. the document has root element
B. the document contains atleast one or more root element
C. the XML document has DTD associated with it & it complies with that DTD
D. Each element must nest inside any enclosing element property
ANSWER : C

XML uses the features of
A. HTML
B. XHTML
C. VML
D. SGML
ANSWER : D

XML document can be viewed in
A. IE 3.0
B. IE 2.0
C. IE 6.0
D. IE X.0
ANSWER : C

There is a way of describing XML data, how?
A. XML uses a DTD to describe the data
B. XML uses XSL to describe data
C. XML uses a description node to describe data
D. Both 1 and 3
ANSWER : D

What does DTD stand for?
A. Direct Type Definition
B. Document Type Definition
C. Do The Dance
D. Dynamic Type Definition
ANSWER : B

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
ANSWER : A

Which of the following XML fragments are well-formed?
A. <myElement myAttribute="someValue"/>
B. <myElement myAttribute=someValue/>
C. <myElement myAttribute=’someValue’>
D. <myElement myAttribute="someValue’/>
ANSWER : A

How can we make attributes have multiple values:
A. <myElement myAttribute="value1 value2"/>
B. <myElement myAttribute="value1" myAttribute="value2"/>
C. <myElement myAttribute="value1, value2"/>
D. attributes cannot have multiple values
ANSWER : D

Which of the following XML fragments are well-formed?
A. <myElement myAttribute="value1 <= value2"/>
B. <myElement myAttribute="value1 & value2"/>
C. <myElement myAttribute="value1 > value2"/>
D.  None of the above
ANSWER : C

The use of a DTD in XML development is:
A. required when validating XML documents
B. no longer necessary after the XML editor has been customized
C. used to direct conversion using an XSLT processor
D. a good guide to populating a templates to be filled in when generating an XML document automatically
ANSWER :  A

Parameter entities can appear in
A. xml file
B. dtd file
C. xsl file
D. Both 1 and 2
ANSWER : B


Attribute standalone="no" should be included in XML declaration if a document:
A. is linked to an external XSL stylesheet
B. has external general references
C. has processing instructions
D. has an external DTD
ANSWER : D

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
ANSWER : A


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” >
ANSWER : D


The syntax for parameter entity is
A.  <! ENTITY % NAME DEFINITION>
B.  < ENTITY % NAME DEFINITION>
C.  <! ENTITY $ NAME DEFINITION>
D.  < ENTITY % NAME DEFINITION>
ANSWER : A


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”>
ANSWER : D


The default model for complex type, in XML schemas for element is
A. textOnly
B. elementOnly
C. no default type
D. both 1 & 2
ANSWER : B


Microsoft XML Schema Data types for Hexadecimal digits representating octates
A. UID
B. UXID
C. UUID
D. XXID
ANSWER : C


Microsoft XML Schema Data Type “ boolean” has values
A.  True ,False
B.  True ,False or 1,0
C.  1,0
D.  any number other then zero and zero
ANSWER : C


In simple Type Built into XML schema Boolean type holds
A.  True, False
B.  1,0
C.  both (1) & (2)
D.  True/False and any number except 0
ANSWER : C


In simple type built into XML schema type float has single precision of ________ floating point
A. 16 bit
B. 32 bit
C.  8 bit
D.  4 bit
ANSWER : C


The XML DOM object is
A. Entity
B. Entity Reference
C. Comment Reference
D. Comment Data
ANSWER : B


To create a data island we use the _____________HTML element
A.  <XML>
B.  <dataisland>
C. <Island>
D. <XMLIsland>
ANSWER : A


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”>
ANSWER : C


XML DSOs has the property for the number of pages of data the recordset contains
A.  count
B.  number
C.  pageCount
D.  pageNumber
ANSWER : C


Whats so great about XML?
A. Easy data exchange
B. High speed on network
C. Only (2)is correct
D. Both (1) & (2)
ANSWER : D


For XML document to be valid
A.  document need to be well formed also
B.  document need not to be well formed
C.  document need to be well formed & valid
D.  document validity has no relationship with well formedness
ANSWER :  C

 <?xml version=” 1.0” standalone=” yes” encoding=”UTF-8” ?>
A.  it shows that the version is 1.0
B.  shows thatit is standalone
C.  the standalone is wrong
D.  version attribute is not in XML
ANSWER : C


The attribute used to define a new namespace is
A.  XMLNS
B.  XmlNameSpace
C.  Xmlns
D.  XmlNs
ANSWER : C


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=” /”>
ANSWER : D


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=”//”>
ANSWER : B


PI in XML specification stands for
A.  3.14
B. priceless instruction
C. processing instruction
D. polymorphic inheritance
ANSWER : C


A validating XML application should be used when:
A. the design demands that all elements use both start and end tags
B. missing or out-of-place elements could cause application errors
C. attribute values cannot refer to external entity references
D. High performance is an important architectural constraint
ANSWER : B


A DSO operates like
A. data simulation object at server side
B. dynamic source object at client side
C. data source object at client side
D. data simulation object at client side
ANSWER : C


The XSL formating object use to format a list is
A. list-block
B. list-item
C. list-item-body
D. list-item-label
ANSWER : A


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.
ANSWER : C


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
ANSWER : D


The XSL formating object which holds the content of the table body
A.  table
B.  table-body
C.  table-content
D.  table-footer
ANSWER : B


The XSL formatting object which formats the data in a table
A. table
B. table-body
C. title
D. table-content
ANSWER : A


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
ANSWER : D


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
ANSWER : C


XSL has formatting object “ block”
A. is not supported in XSL
B. generates a block level reference area
C. create a display block
D. groups global declarations for a style sheet
ANSWER : B


XSL has “ block container” for formating the document
A. to create a display block to format the titles
B. to create a display block to format the paragraphes
C. to create a display block to format the headlines & figures
D. to create a block level reference area
ANSWER : D


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” />
ANSWER : D


The syntax for writing default values for element is
A. <xsd:element name=”max” type=” xsd:integer” value=” 100” />
B. <xsd:element name=”max” type=” xsd:integer” fixValue=” 100” />
C. <xsd:element name=”max” type=” xsd:integer” default=” 100” />
D. <xsd:element name=”max” type=” xsd:integer” defaultval=” 100” />
ANSWER : C


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
C. the XSLT processor must be called from a web agent
D. the XSLT processor must be given the DTD as well as the XML document instance
ANSWER : B


What is the role of the XPath language in XSL processing?
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
ANSWER : B


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
D. XSLT specifies the formatting style to be used to render an XML document
ANSWER : C


XSLT processors accept as input:
A. an XML conforming document file and an XSLT specification file
B. only an XML document
C. only an XSLT specification
D. either an XML document or an XSLT specification
ANSWER : A


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=” /” >
ANSWER : D

To match the specific XML elements in XMLT the syntax for given name “ rootnode” is
A. <xsl:template match=” root”>
B. <xsl:template match=” /”>
C. <xsl:template match=” rootnode” >
D. <xsl:template match=” //”>
ANSWER : C


In XSLT style sheet we have syntax to match elements with id as (if id is “ change” )
A. <xsl:template match=” id(‘change’)” >
B. <xsl:template match=” (change)”>
C. <xsl:template match=” change”>
D. <xsl:template match-id=”Change”>
ANSWER : A


To match the text node (in XSLT) the syntax will be
A. <xsl:template match=” text”>
B. <xsl:template match-text=” text”>
C. <xsl:template match=text( )>
D. <xsl:template match=” text( )” >
ANSWER : D


An element declaration specifies
A. a single markup element
B. zmarkup elements
C. markup data
D. the document data
ANSWER : A


Which of the following specify that the order and content of "membership" is not important
A. <!ELEMENT membership NORULE>
B. <!ELEMENT membership EMPTY>
C. <!ELEMENT membership ALL>
D. <!ELEMENT membership ANY>
ANSWER : D


Which of the following is used to specify the attribute list of an element
A. ATTLIST
B. ?ATTLIST
C. !ATTLIST
D. #ATTLIST
ANSWER : C


Which of the following instruct the browser which stylesheet to use
A. <xml-stylesheet type="text/xsl" href="cd.xsl">
B. <xml-stylesheet type="text/xsl" xsl="cd.xsl">
C. <?xml-stylesheet type="text/xsl" href="cd.xsl"?>
D. <?xml-stylesheet type="text/xsl" xsl="cd.xsl"?>
ANSWER : C


Which of the following XSLT Patterns is used to match any descendant nodes
A. /
B. //
C. .
D. ..
ANSWER : B


Which of the following XSLT Patterns is used to match the parent node
A. /
B. //
C. .
D. ..
ANSWER : D


Which of the following is a valid XSLT iteration command
A. for
B. for-all
C. for-each
D. in-turn
ANSWER : C


What is an advantage of XML compared to HTML?
A. XML works on more platforms.
B. XML is suited to using Web pages as front ends to databases.
C. XML was designed for portable phones.
D. XML is simpler to learn than HTML.
ANSWER : B


The following best describes the development of XML.
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.
ANSWER : C


The correct priority for implementing XML based IETMs is :
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.
ANSWER : C


Which of the following statements is true:
A. XML is a direct subset of SGML
B. SGML is an application of HTML
C. XML is a kind of dynamic HTML
D. XHTML is XML rewritten in HTML
ANSWER : A


What is a qualified name?
A. Any name conforming to the XML Names specification
B. A name having prefix and local name separated by a colon
C. A name applying only to qualified elements and attributes
D. None of the above
ANSWER : B


What is a NCName
A. A Non-Common Name
B. A Non-Conforming Name
C. A Non-Colonized Name
D. None of the above
ANSWER : C


What is the default namespace
A. The namespace used by default when no namespace is declared
B. The namespace used when two or more namespaces are referenced
C. A namespace that is referenced with the xmlns attribute, but without a prefix
D. None of the above
ANSWER : C


What is an XML namespace?
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.
ANSWER : B


From what set of names do NCNames derive?
A. Any combination of characters allowable in XML
B. Any names conforming to XML Names, minus the colon
C. Any names for elements and attributes within the DTD to which the namespace refers
D. None of the above.
ANSWER : B

15 comments:

  1. good for practice but answers should be hidden.

    ReplyDelete
  2. Nice image visibility and well written blog. Thanks for sharing. I have recently come across a new online service provider company which provides Shifting Services @ Packers And Movers Delhi
    Packers And Movers Ghazibad
    Packers And Movers Greater Noida
    Packers And Movers Noida

    ReplyDelete
  3. Thanks for sharing Such a valuable information.Im very thankful to You That You Had Given Me This opportunity to write on This blog.please visit our website I Assure You That it will be very useful for @ Packers And Movers Delhi
    Packers And Movers Delhi to Bangalore
    Packers And Movers Delhi to Ahmedabad

    ReplyDelete