XML Declaration MCQ

This section focuses on "Declaration" in XML. These Multiple Choice Questions (MCQ) should be practiced to improve the XML skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.

1. ___________ contains details that prepare an XML processor to parse the XML document.

A. XML document
B. XML declaration
C. Both A and B
D. None of the above

View Answer

2. It informs the parser whether the document relies on the information from an external source?

A. Version
B. Encoding
C. Decoding
D. Standalone

View Answer

3. What is default value for Standalone?

A. Yes
B. No
C. Can't say
D. No default value

View Answer

4. Which of the following is not correct Parameter_value for encoding?

A. ISO-10646-UCS-2
B. ISO-10646-UCS-4
C. Shift_JIA

View Answer

5. Which is the parameter value for version?

A. 0.1
B. 1
C. 1.1
D. 2

View Answer

6. Which of the following are correct rule for XML declaration?

A. If the XML declaration is included, it must contain version number attribute.
B. Either single or double quotes may be used.
C. The XML declaration has no closing tag
D. All of the above

View Answer

7. What is XML declaration with no parameters?

A. <?xml >
B. <?xml />
C. <xml >
D. <xml ?>

View Answer

8. An element declaration specifies

A. a single markup element
B. zmarkup elements
C. markup data
D. the document data

View Answer

9. 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

View Answer

10. Which of the following are not correct rule of XML declaration?

A. The names are always in lower case.
B. The Parameter names and values are not case-sensitive.
C. The correct order is: version, encoding and standalone.
D. None of the above

View Answer


* You must be logged in to add comment.