Title: Test03- Requires Respondus LockDown Browser
Course: Extensible Markup Language (APT TEMPLATE) > Section: Test03

Test for Validating XML

Q: True or False: A schema for a custom markup language:

- identifies its elements and their attributes
- declares which are required and which are not
- True
- False
A: True

Q: True or False: Every XML document requires a schema.
- True
- False
A: False

Q: True or False: You can compare an XML document to its corresponding schema to validate whether it conforms to the rules specified in the schema.
- True
- False
A: True

Q: True or False: There are two principal systems for writing schemas: DTD and PDQ.
- True
- False
A: False

Q: True or False: DTD is an abbreviation for Document to Document.
- True
- False
A: False

Q: True or False: A DTD is a set of rules that defines a custom markup language in XML.
- True
- False
A: True

Q: True or False: An XML document is considered valid for a particular custom markup language if it adheres to the rules defined by the DTD for that custom markup language.
- True
- False
A: True

Q: True or False: A DTD for a custom markup language will define:

1. a list of elements
2. any child elements that each element can have
3. any attribute that each element can have
4. whether or not the specified attributes are optional or required
5. whether the document is or is not sensitive to upper and lower case
- True
- False
A: False

Q: True or False: A DTD is an XML document that begins with a standard XML declaration.
- True
- False
A: False

Q: True or False: PCDATA is an abbreviation for politically correct data.
- True
- False
A: False

Q: True or False: You can use a DTD to control the order in which elements must appear in a corresponding XML document.
- True
- False
A: True

Q: True or False: A DTD cannot define a sequence of child elements that must be contained in a parent element.
- True
- False
A: False

Q: True or False: The three characters *, +, and ? are special symbols used in a DTD to define how many times a child element can appear within a parent element.
- True
- False
A: True

Q: True or False: The vertical bar character, |, is used in a DTD to define choices for the content of an element.
- True
- False
A: True

Q: True or False: In a DTD, an attribute definition consists of four parts:

1. element name
2. attribute name
3. attribute type
4. optional status
- True
- False
A: True

Q: True or False: Internal general entities defined in a DTD are shortcuts that represent text.
- True
- False
A: True

Q: True or False: To use an internal general entity in an XML document, you write its name with an ampersand as a prefix and a colon as a suffix.
- True
- False
A: False

Q: True or False: Character references look similar to entities but they are not entities and do not need to be declared in the DTD.
- True
- False
A: True

Q: True or False: An alternative to the internal general entity is an external general entity, which is saved in a separate, external document.
- True
- False
A: True

Q: True or False: Parameter entities are created for use in XSL documents.
- True
- False
A: False

Q: True or False: As with general entities, parameter entities can also be created in external files.
- True
- False
A: True

Q: True or False: You must declare a DTD in your XML document in order to use it.
- True
- False
A: True

Q: True or False: The main purpose for creating a DTD is to ensure that a given XML document is constructed in a specific way as defined by the DTD.
- True
- False
A: True

Q: True or False: All DTDs must be written and saved as separate files.
- True
- False
A: False

Q: True or False: All XML parsers are required to have the ability to validate your XML against a DTD.
- True
- False
A: False