XML DTD MCQ
This section focuses on "Document type definition (DTD)" 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. The DTD starts with?
A. declaration
B. DOCTYPE delimiter
C. DTD identifier
D. None of the above
View Answer
Ans : B
Explanation: The DTD starts with
2. An __________ tells the parser to parse the document from the specified root element.
A. element
B. DTD
C. PI
D. identifier
View Answer
Ans : A
Explanation: An element tells the parser to parse the document from the specified root element
3. If the DTD is pointing to external path, it is called?
A. Internal Subset
B. DTD identifier
C. External Subset
D. None of the above
View Answer
Ans : C
Explanation: If the DTD is pointing to external path, it is called External Subset.
4. The square brackets [ ] enclose an optional list of entity declarations called?
A. Internal Subset
B. DTD identifier
C. Element Subset
D. DTD Subset
View Answer
Ans : A
Explanation: The square brackets [ ] enclose an optional list of entity declarations called Internal Subset.
5. Which of the following is correct rule for internal subset?
A. The Name in the document type declaration must match the element type of the root element.
B. Similar to the DOCTYPE declaration, the element declarations must start with an exclamation mark.
C. The document type declaration must appear at the start of the document
D. All of the above
View Answer
Ans : D
Explanation: All of the above statement are true.
6. In external DTD elements are declared _______ the XML file.
A. Inside
B. After DOCTYPE
C. Before DTD Body
D. outside
View Answer
Ans : D
Explanation: In external DTD elements are declared outside the XML file. They are accessed by specifying the system attributes which may be either the legal .dtd file or a valid URL.
7. We can refer to an external DTD by using?
A. system identifiers
B. public identifiers
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: We can refer to an external DTD by using either system identifiers or public identifiers.
8. Public identifiers can follow any format, however, a commonly used format is called?
A. PDF
B. PNG
C. FPI
D. JPG
View Answer
Ans : C
Explanation: Public identifiers can follow any format, however, a commonly used format is called Formal Public Identifiers, or FPIs.
9. 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
View Answer
Ans : A
Explanation: In XML,the internal DTD subset is read before the external DTD.
10. 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.
View Answer
Ans : C
Explanation: he correct priority for implementing XML based IETMs is : Conduct pilot program, train staff, create modular library, develop DTD.
Discussion