56
80k

eXtended Markup Language (XML) Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Science in Computer Science TY (BSc CS) .

1.

What does XML stand for?

A. extra modern link
B. extensible markup language
C. example markup language
D. x-markup language
Answer» B. extensible markup language
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
Answer» B. <?xml version="a.0"?>
3.

Which statement is true?

A. all the statements are true
B. all xml elements must have a closing tag
C. all xml elements must be lower case
D. all xml documents must have a dtd
Answer» B. all xml elements must have a closing tag
4.

Is it easier to process XML than HTML?

A. yes
B. no
C. somtimes
D. cant say
Answer» A. yes
5.

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

A. internet explorer 5.5
B. netscape d.7
C. realplayer.
D. both a and b
Answer» D. both a and b
6.

Kind of Parsers are

A. well-formed
B. well-documented
C. non-validating and validating
D. none of the above
Answer» C. non-validating and validating
7.

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. must contain one or more elements and root element must contain all other elements
8.

Comment in XML document is given by

A. <?-- -->
B. <!-- --!>
C. <!-- -->
D. </-- -- >
Answer» C. <!-- -->
9.

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. are converted to single lf symbol
10.

Which of the following strings are a correct XML name?

A. _myelement
B. my element
C. #myelement
D. none of the above
Answer» A. _myelement
11.

Which of the following strings are a correct XML name?

A. xmlextension
B. xslnewelement
C. xmlelement#123
D. all
Answer» B. xslnewelement
12.

Which of the following XML fragments are well-formed?

A. <?xml?>
B. <?xml version="a.0"?>
C. <?xml encoding="jis"?>
D. <?xml encoding="jis" version="a.0"?>
Answer» B. <?xml version="a.0"?>
13.

What are the predefined attributes

A. xml:lang
B. xml:space
C. both
D. none.
Answer» C. both
14.

Kind of Parsers are

A. well-formed
B. validating
C. non-validating
D. both b & c
Answer» D. both b & c
15.

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. the xml document has dtd associated with it & it complies with that dtd
16.

XML uses the features of

A. html
B. xhtml
C. vml
D. sgml
Answer» D. sgml
17.

XML document can be viewed in

A. ie c.0
B. ie b.0
C. ie 6.0
D. ie x.0
Answer» C. ie 6.0
18.

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
Answer» D. both a and c
19.

What does DTD stand for?

A. direct type definition
B. document type definition
C. do the dance
D. dynamic type definition
Answer» B. document type definition
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
Answer» A. the browser name
21.

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. <myelement myattribute="somevalue"/>
22.

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. attributes cannot have multiple values
23.

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. <myelement myattribute="value1 > value2"/>
24.

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. required when validating xml documents
25.

Parameter entities can appear in

A. xml file
B. dtd file
C. xsl file
D. both 1 and 2
Answer» B. dtd file
26.

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. has an external dtd
27.

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. the internal dtd subset is read before the external dtd

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.