Top 50+ Solved eXtended Markup Language (XML) MCQ Questions Answer
Q. 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 a and c
Q. What does DTD stand for?
a. direct type definition
b. document type definition
c. do the dance
d. dynamic type definition
Q. 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
Q. 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’/>
Q. 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
Q. 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
Q. 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
Q. 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