XML/XML Mcq Question Set 1 Sample Test,Sample questions

Question:
 <?xml version=” A.0” standalone=” yes” encoding=”UTF-8” ?>

1. it shows that the version is A.0

2.shows thatit is standalone

3.the standalone is wrong

4. version attribute is not in XML


Question:
 For XML document to be valid

1. document need to be well formed also

2.document need not to be well formed

3.document need to be well formed & valid

4.document validity has no relationship with well formedness


Question:
 In XML

1. the internal DTD subset is read before the external DTD

2.the external DTD subset is read before the internal DTD

3.there is no external type of DTD

4. there is no internal type of DTD


Question:
 Is it easier to process XML than HTML?

1. Yes

2. No

3. Somtimes

4.Cant say


Question:
 The default model for complex type, in XML schemas for element is

1. textOnly

2.elementOnly

3. no default type

4. both 1 & 2


Question:
 To Bind the HTML elements with DSO we use _________ attribute

1.DATASOURCE

2.DATAFIELD

3.DATASRC

4.DATAFLD


Question:
 What are the predefined attributes

1. xml:lang

2.xml:space

3. both

4.None.


Question:
 What is the correct syntax of the declaration which defines the XML version?:

1.<xml version="A.0" />

2.<?xml version="A.0"?>

3.<?xml version="A.0" />

4.none of the above


Question:
A schema describes
(i) grammer
(ii) vocabulary
(iii) structure
(iv) datatype of XML document

1.(i) & (ii) are correct

2.(i),(iii) ,(iv) are correct

3.(i),(ii),(iv) are correct

4.(i),(ii),(iii),(iv) are correct


Question:
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

1.(i) is correct

2.(ii)is correct

3.both are correct

4.None of the mentioned


Question:
Attribute of the document interface in DOM is/are
(i)doctype
(ii)implementation
(iii)documentElement
which are read only attributes

1.(i) only

2.(ii) only

3.(ii),(iii) only

4. All of the mentioned


Question:
Attribute standalone="no" should be included in XML declaration if a document:

1.is linked to an external XSL stylesheet

2.has external general references

3.has processing instructions

4.has an external DTD


Question:
Comment in XML document is given by

1.<?-- -->

2.<!-- --!>

3.<!-- -->

4. </-- -- >


Question:
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

1.(i) is correct

2.(i),(ii) are correct

3.(ii),(iii) are correct

4.(i),(ii),(iii) are correct


Question:
DTD includes the specifications about the markup that can be used within the document, the specifications consists of all EXCEPT

1. the browser name

2.the size of element name

3.entity declarations

4.element declarations


Question:
How can we make attributes have multiple values:

1.<myElement myAttribute="value1 value2"/>

2.<myElement myAttribute="value1" myAttribute="value2"/>

3.<myElement myAttribute="value1, value2"/>

4.attributes cannot have multiple values


Question:
In simple Type Built into XML schema Boolean type holds

1.True, False

2.1,0

3. both A. & B.

4.True/False and any number except 0


Question:
In simple type built into XML schema type flat has single precision of ________ floating point

1.16 bit

2. 32 bit

3.8 bit

4. 4 bit


Question:
Kind of Parsers are

1.well-formed

2.well-documented

3. non-validating and validating

4.none of the above


Question:
Microsoft XML Schema Data Type “ boolean” has values

1.True ,False

2.True ,False or 1,0

3. 1,0

4.any number other then zero and zero


Question:
Microsoft XML Schema Data types for Hexadecimal digits representating octates

1. UID

2. UXID

3.UUID

4. XXID


Question:
Parameter entities can appear in

1. xml file

2.dtd file

3.xsl file

4.Both 1 and 2


Question:
Simple type Built into Schema “ data’ represent a data in

1.MM-DD-YY

2. Dd-MM-YY

3.YY-MM-DD

4.YYYY-MM-DD


Question:
The attribute used to define a new namespace is

1.XMLNS

2. XmlNameSpace

3.Xmlns

4. XmlNs


Question:
The syntax for parameter entity is

1.<! ENTITY % NAME DEFINITION>

2.< ENTITY % NAME DEFINITION>

3. <! ENTITY $ NAME DEFINITION>

4.< ENTITY % NAME DEFINITION>


Question:
The use of a DTD in XML development is:

1. required when validating XML documents

2. no longer necessary after the XML editor has been customized

3.used to direct conversion using an XSLT processor

4.a good guide to populating a templates to be filled in when generating an XML document automatically


Question:
The XML DOM object is

1.Entity

2.Entity Reference

3.Comment Reference

4.Comment Data


Question:
There is a way of describing XML data, how?

1.XML uses a DTD to describe the data

2. XML uses XSL to describe data

3. XML uses a description node to describe data

4.Both A and C


Question:
To add the attribute named Type to the <customer> tag the syntax will be

1.<customer attribute Type=”exelent”>

2.<customer Type attribute =”exelent”>

3.<customer Type attribute_type=”exelent”>

4.<customer Type=” exelent” >


Question:
To bind the HTML element <INPUT> Type in text with the datasource “ dsoCustomer” we use

1. <INPUT TYPE=”TEXT” DATAFIELD=”#dsoCustomer”>

2. <INPUT TYPE=”TEXT” DATASRC=” dsoCustomer”>

3.<INPUT TYPE=”TEXT” DATASRC=” #dsoCustomer” >

4.<INPUT TYPE=”TEXT” DATAFLD=” #dsoCustomer”>


Question:
To create a choise in XML schemas, we use the

1.<xsd:select> element

2. <xsd:multi> element

3. <xsd:choise> element

4.<xsd:single> element


Question:
To create a data island we use the _____________HTML element

1. <XML>

2.<dataisland>

3. <Island>

4. <XMLIsland>


Question:
To match the root node in XMLT transform the syntax will be

1. <xsl:template match=”Document”>

2.<xsl:template match=”Root”>

3. <xsl:template match=”RootNode”>

4.<xsl:template match=” /”>


Question:
To use the external DTD we have the syntax

1.<?xml version=”A.0” standalone=”no”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

2. <?xml version=”A.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>

3.<?xml version=”A.0” standalone=”no”?> <! DOCTYPE DOCUMENT “order.dtd”?>

4.<?xml version=”A.0” standalone=”yes”?> <! DOCTYPE DOCUMENT SYSTEM “order.dtd”?>


Question:
Valid XML document means (most appropriate)

1.the document has root element

2.the document contains atleast one or more root element

3.the XML document has DTD associated with it & it complies with that DTD

4.Each element must nest inside any enclosing element property


Question:
Well formed XML document means

1.it contains a root element

2.it contain an element

3. it contains one or more elements

4.must contain one or more elements and root element must contain all other elements


Question:
What does DTD stand for?

1.Direct Type Definition

2.Document Type Definition

3.Do The Dance

4.Dynamic Type Definition


Question:
Whats so great about XML?

1. Easy data exchange

2.High speed on network

3. Only B.is correct

4.Both A. & B.


Question:
When processing an output XML, "new line" symbols

1.are copied into output "as is", i.e. "CR+LF" for Windows, CR for Macintosh, LF for Unix.

2.are converted to single LF symbol

3. are converted to single CR symbol

4.are discarded


Question:
Which of the following programs support XML or XML applications?:

1. Internet Explorer 5.5

2.Netscape D.7

3. RealPlayer.

4.Both a and b


Question:
Which of the following strings are a correct XML name?

1. xmlExtension

2.xslNewElement

3.XMLElement#123

4.All of the Mentioned


Question:
Which of the following strings are a correct XML name?

1. _myElement

2.my Element

3.#myElement

4. None of the above


Question:
Which of the following XML documents are well-formed?

1. <firstElement>some text goes here <secondElement>another text goes here</secondElement> </firstElement>

2.<firstElement>some text goes here</firstElement> <secondElement> another text goes here</secondElement>

3.<firstElement>some text goes here <secondElement> another text goes here</firstElement> </secondElement>

4.</firstElement>some text goes here </secondElement>another text goes here <firstElement>


Question:
Which of the following XML fragments are well-formed?

1. <?xml?>

2.<?xml version="A.0"?>

3.<?xml encoding="JIS"?>

4. <?xml encoding="JIS" version="A.0"?>


Question:
Which of the following XML fragments are well-formed?

1.<myElement myAttribute="someValue"/>

2. <myElement myAttribute=someValue/>

3.<myElement myAttribute=’someValue’>

4.<myElement myAttribute="someValue’/>


Question:
Which statement is true?

1.All the statements are true

2.All XML elements must have a closing tag

3.All XML elements must be lower case

4. All XML documents must have a DTD


Question:
XML document can be viewed in

1. IE C.0

2. IE B.0

3. IE 6.0

4.IE X.0


Question:
XML DSOs has the property for the number of pages of data the recordset contains

1. count

2. number

3.pageCount

4.pageNumber


Question:
XML uses the features of

1. HTML

2.XHTML

3.VML

4.SGML


Question:
You can name the schema using the name attribute like

1. <schema attribute=”schema1”>

2. <schema nameattribute=”schema1”>

3.<schema nameattri=”schema1”>

4.<schema name=”schema1”>


More MCQS

  1. XML Mcq Question Set 1
  2. XML Mcq Question Set 2
  3. XML Mcq Question Set 3
  4. XML Mcq Question Set 4
  5. XML Mcq Question Set 5
  6. XML Multiple Choice Questions
  7. XML MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!