Deck 12: Validating an XML Document

Full screen (f)
exit full mode
Question
An element declaration employing the #PCDATA content model shown in the accompanying figure does not allow for child elements._________________________
Use Space or
up arrow
down arrow
to flip the card.
Question
Attribute values do not allow you to control the format of the character data.
Question
It is best not to work with mixed content if you want a tightly structured document._________________________
Question
An entity whose content is found within the DTD is known as a(n)external entity _________________________
Question
An attribute declared using the NAME token must have a value equal to the value of an ID attribute located somewhere in the same document._________________________
Question
A modifying symbol is placed directly before the element it modifies._________________________
Question
For a DTD to validate either binary data, such as images or video clips, or character data that is not well formed, you need to work with parsed entities.
Question
To test for validity, an XML parser must be able to compare the XML document with the rules established in the DTD.
Question
An XML element is not limited to either parsed character data or child elements.
Question
The #FIXED attribute default is used to indicate that the use of an attribute is optional._________________________
Question
In a valid document, at least two elements must be declared in the DTD.
Question
If a processor encounters more than one declaration for the same attribute, it ignores the first statement._________________________
Question
Entities can reference content found either in an external file or within the DTD itself.
Question
As shown in the accompanying figure, the external subset would define some basic rules for all of the documents, and the internal subset would define rules that are specific to each document.
Question
One way to create a valid document is to design a document type definition, or DTD, for the document.
Question
The DOCTYPE declaration has to be added to a document epilog as shown in the accompanying figure._________________________
Question
A(n)notation must supply a name for the data type and provide clues about how applications should handle the data._________________________
Question
Attribute-list declarations can be located anywhere within the document type declaration.
Question
Generally, elements contain parsed character data or child elements.
Question
A DTD can be used to enforce a specific data structure on document content._________________________
Question
A DTD is entered into the document in a statement called a document ____ declaration.

A) basis
B) element
C) index
D) type
Question
Which of the following is a part into which a DTD like the one in the accompanying figure can be divided?

A) element declaration
B) strict declaration
C) external subset
D) root element
Question
An element declaration can specify which of the following?

A) an element's name
B) what kind of content the element can contain
C) the order in which elements appear in the document
D) all of the above
Question
Which of the following is a type of identifier for the location of an external subset like the one in the accompanying figure?

A) internal
B) undeclared
C) qualified
D) system
Question
How many DOCTYPE declarations can there be in an XML document?

A) 1
B) 2
C) 3
D) There is no limit.
Question
An element ____ declaration specifies an element's name and indicates what kind of content the element can contain.

A) content
B) model
C) type
D) detail
Question
The DOCTYPE declaration has to be added to the document ____, after the XML declaration and before the document's root element, as shown in the accompanying figure.

A) prolog
B) epilog
C) body
D) any of the above
Question
The ____ value for the content model in an element declaration means an element cannot store any content.

A) EMPTY
B) NULL
C) NONE
D) mixed
Question
The ____ content model is reserved for elements that store no content.

A) NULL
B) NONE
C) EMPTY
D) VOID
Question
Which of the following is a part into which a DTD like the one in the accompanying figure can be divided?

A) internal subset
B) system identifier
C) root element
D) public identifier
Question
A(n)____ is a collection of rules that define the content and structure of an XML document.

A) data structure
B) DTD
C) XMLNS
D) validity glossary
Question
Element names can contain which of the following?

A) reserved symbols
B) spaces
C) numbers
D) all of the above
Question
One way to create a valid document is to design a(n)____ for the document.

A) data structure
B) DTD
C) XMLNS
D) validity glossary
Question
The ____ value for the content model in an element declaration means the element can contain both parsed character data and child elements.

A) mixed
B) Elements
C) #PCDATA with sequence
D) BOTH
Question
The locations of external subsets like that shown in the accompanying figure can be defined using ____ types of identifiers.

A) two
B) three
C) four
D) six
Question
Most standard XML vocabularies have ____ identifiers.

A) public
B) strict
C) system
D) master
Question
The content-model value can be one of ____ specific keywords or one of two content descriptions.

A) five
B) four
C) three
D) two
Question
The ____ value for the content model in an element declaration means the element can contain only parsed character data.

A) Parsed
B) mixed
C) #PCDATA
D) Elements
Question
To create a parsed entity that references content from an external file using a system ____, you use the declaration .

A) identifier
B) qualifier
C) index
D) locator
Question
You can divide a DTD into ____ parts.

A) two
B) three
C) five
D) seven
Question
The declaration ____ would permit this element in an XML document: Lea Ziegler.

A)
B)
C)
D)
Question
To test for validity, an XML parser must be able to compare your XML document with the ____ rules you set up in the DTD.

A) validity
B) integration
C) persistence
D) interpolation
Question
XML parsers interpret the ____ symbol as a reference to another entity and attempt to resolve the reference.

A) &
B) %
C) #
D) !
Question
The ____ content model allows an element to store any type of content.

A) OPEN
B) mixed
C) #PCDATA
D) ANY
Question
The NMTOKEN data types cannot contain ____.

A) hyphens
B) colons
C) white space
D) any of the above
Question
The ____ symbol indicates that an element occurs at least once.

A) ^
B) ?
C) +
D) &
Question
The ____ attribute default means that the attribute must appear with every occurrence of the element.

A) #MANDATED
B) #FIXED
C) #REQUIRED
D) #IMPLIED
Question
In a DTD, a ____ symbol specifies the number of occurrences of each element.

A) specifying
B) quantifier
C) count
D) modifying
Question
Which of the following is accomplished by an attribute-list declaration?

A) It lists the names of all the attributes associated with a specific element.
B) It specifies the data type of each attribute.
C) It indicates whether each attribute is required or optional.
D) All of the above.
Question
If an entity's content is found within the DTD, the entity is known as a(n)____ entity.

A) internal
B) persistent
C) contained
D) consistent
Question
The syntax for creating a conditional section is ____.

A) Declarations
]}>
B) Declarations
}}>
C) Declarations
]]>
D) Declarations
]]>
Question
The ____ symbol is used for inserting parameter entities.

A) &
B) %
C) #
D) !
Question
Once an ID value has been declared in a document, other attribute values can refer to it using the ____ token.

A) name
B) entity
C) IDREF
D) value
Question
When the ____ symbol is used with a choice list, the element can contain any number of occurrences of child elements or PCDATA, or it can contain no content at all.

A) +
B) *
C) ?
D) ^
Question
Content referenced by an entity can be either ____.

A) persistent or consistent
B) parsed or unparsed
C) static or dynamic
D) well-formed or unique
Question
While very flexible, elements with ____ content do not add much defined structure to a document.

A) dynamic
B) mixed
C) static
D) integrated
Question
The attributes of the attribute value type ____ contain an accepted XML name.

A) ID
B) NMTOKEN
C) IDREF
D) ENTITY
Question
The attributes of the attribute value type ____ contain a list of entities separated by white space.

A) ENTITY
B) enumerated list
C) ENTITIES
D) ID
Question
An entity that references content that cannot be interpreted by the XML parser is a(n)____ entity.

A) internal
B) well-formed
C) unparsed
D) dynamic
Question
Any attribute that has been declared by the data type ID is a candidate for an ID ____.

A) property
B) element
C) link
D) reference
Question
You tell Rosalind about the CDATA attribute type.Which of the following attribute values would NOT be allowed for an attribute of this type?

A) 25.99
B) New York, NY
C) Bob & Jenny
D) yellow
Question
____________________ content allows an element to contain both parsed character data and child elements.
Question
Finally, you help Rosalind write the declaration of an attribute named "credits" of an element named "course." This optional attribute should contain character data, and a value of 4 should be used if an attribute value is not specified.Which of the following is an appropriate declaration of this attribute?

A)
B)
C)
D)
Question
You help Rosalind write the declaration of the "semester" attribute described in the previous problem.Which of the following is an appropriate declaration for this attribute?

A)
B)
C)
D)
Question
A(n)____________________ specifies an element's name and indicates what kind of content it can contain.
Question
The chunks into which a DTD can be broken with parameter entities are known as ____.

A) components
B) blurbs
C) links
D) modules
Question
A(n)____________________ content model is a list of child elements that follow a defined order.
Question
DTDs use more general numbering with a(n)____________________ symbol, which specifies the number of occurrences of each element.
Question
Casey next wants to write a declaration for an element named "advanced" that he will use to record the fact that a student is advanced.This element will not contain any content.Which of the following is an appropriate element declaration for this element?

A)
B)
C)
D)
Question
Rosalind wants to define a required attribute called "semester" of an element named "course." She wants to ensure that this attribute takes on one of three values: fall, spring, or summer.Which type of attribute should she use?

A) CDATA
B) an enumerated type
C) a tokenized type
D) a value-list type
Question
External DTDs work the same way as ____ style sheets.

A) dynamic
B) external
C) embedded
D) inline
Question
You tell Casey that he must declare the DTD using a DOCTYPE statement.Where should the DOCTYPE go?

A) before the XML declaration
B) within the XML declaration
C) after the XML declaration and before the document's root element
D) after the document's root element
Question
Attributes that are limited to a set of possible values are known as ____________________ types.
Question
A DOCTYPE declaration like the one in the accompanying figure is also known as a(n)____________________.
Question
Casey needs to declare an "address" element that can be used to store a student's address.If he intends to store the address as parsed character data, which of the following is an appropriate declaration for this element?

A)
B)
C)
D)
Question
Casey wants to include a declaration for an element named "note" that can contain any type of content.Which of the following is an appropriate element declaration for this element?

A)
B)
C)
D)
Question
Rosalind wants to declare a "coursenum" attribute, the values of which will be unique within the document.Which attribute type should she use?

A) CDATA
B) UNIQUE
C) ID
D) IDREF
Question
A(n)____________________ is added to the DOCTYPE declaration to provide information about the DTD to the XML parser.
Question
In a(n)____________________ subset, the declarations are placed in an external file that is accessed from the XML document.
Question
After you teach Casey about declarations for elements with child elements, he constructs the element declaration .Given this declaration, which of the following is NOT a valid "class" element?

A) Beginner Drawing
B) One-on-One Painting
C) Oil Paintingbrushstrokes
D) Working with Clay
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/100
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Validating an XML Document
1
An element declaration employing the #PCDATA content model shown in the accompanying figure does not allow for child elements._________________________
True
2
Attribute values do not allow you to control the format of the character data.
False
3
It is best not to work with mixed content if you want a tightly structured document._________________________
True
4
An entity whose content is found within the DTD is known as a(n)external entity _________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
5
An attribute declared using the NAME token must have a value equal to the value of an ID attribute located somewhere in the same document._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
6
A modifying symbol is placed directly before the element it modifies._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
7
For a DTD to validate either binary data, such as images or video clips, or character data that is not well formed, you need to work with parsed entities.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
8
To test for validity, an XML parser must be able to compare the XML document with the rules established in the DTD.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
9
An XML element is not limited to either parsed character data or child elements.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
10
The #FIXED attribute default is used to indicate that the use of an attribute is optional._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
11
In a valid document, at least two elements must be declared in the DTD.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
12
If a processor encounters more than one declaration for the same attribute, it ignores the first statement._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
13
Entities can reference content found either in an external file or within the DTD itself.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
14
As shown in the accompanying figure, the external subset would define some basic rules for all of the documents, and the internal subset would define rules that are specific to each document.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
15
One way to create a valid document is to design a document type definition, or DTD, for the document.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
16
The DOCTYPE declaration has to be added to a document epilog as shown in the accompanying figure._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
17
A(n)notation must supply a name for the data type and provide clues about how applications should handle the data._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
18
Attribute-list declarations can be located anywhere within the document type declaration.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
19
Generally, elements contain parsed character data or child elements.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
20
A DTD can be used to enforce a specific data structure on document content._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
21
A DTD is entered into the document in a statement called a document ____ declaration.

A) basis
B) element
C) index
D) type
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following is a part into which a DTD like the one in the accompanying figure can be divided?

A) element declaration
B) strict declaration
C) external subset
D) root element
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
23
An element declaration can specify which of the following?

A) an element's name
B) what kind of content the element can contain
C) the order in which elements appear in the document
D) all of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is a type of identifier for the location of an external subset like the one in the accompanying figure?

A) internal
B) undeclared
C) qualified
D) system
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
25
How many DOCTYPE declarations can there be in an XML document?

A) 1
B) 2
C) 3
D) There is no limit.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
26
An element ____ declaration specifies an element's name and indicates what kind of content the element can contain.

A) content
B) model
C) type
D) detail
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
27
The DOCTYPE declaration has to be added to the document ____, after the XML declaration and before the document's root element, as shown in the accompanying figure.

A) prolog
B) epilog
C) body
D) any of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
28
The ____ value for the content model in an element declaration means an element cannot store any content.

A) EMPTY
B) NULL
C) NONE
D) mixed
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ content model is reserved for elements that store no content.

A) NULL
B) NONE
C) EMPTY
D) VOID
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following is a part into which a DTD like the one in the accompanying figure can be divided?

A) internal subset
B) system identifier
C) root element
D) public identifier
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
31
A(n)____ is a collection of rules that define the content and structure of an XML document.

A) data structure
B) DTD
C) XMLNS
D) validity glossary
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
32
Element names can contain which of the following?

A) reserved symbols
B) spaces
C) numbers
D) all of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
33
One way to create a valid document is to design a(n)____ for the document.

A) data structure
B) DTD
C) XMLNS
D) validity glossary
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ value for the content model in an element declaration means the element can contain both parsed character data and child elements.

A) mixed
B) Elements
C) #PCDATA with sequence
D) BOTH
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
35
The locations of external subsets like that shown in the accompanying figure can be defined using ____ types of identifiers.

A) two
B) three
C) four
D) six
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
36
Most standard XML vocabularies have ____ identifiers.

A) public
B) strict
C) system
D) master
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
37
The content-model value can be one of ____ specific keywords or one of two content descriptions.

A) five
B) four
C) three
D) two
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
38
The ____ value for the content model in an element declaration means the element can contain only parsed character data.

A) Parsed
B) mixed
C) #PCDATA
D) Elements
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
39
To create a parsed entity that references content from an external file using a system ____, you use the declaration .

A) identifier
B) qualifier
C) index
D) locator
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
40
You can divide a DTD into ____ parts.

A) two
B) three
C) five
D) seven
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
41
The declaration ____ would permit this element in an XML document: Lea Ziegler.

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
42
To test for validity, an XML parser must be able to compare your XML document with the ____ rules you set up in the DTD.

A) validity
B) integration
C) persistence
D) interpolation
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
43
XML parsers interpret the ____ symbol as a reference to another entity and attempt to resolve the reference.

A) &
B) %
C) #
D) !
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
44
The ____ content model allows an element to store any type of content.

A) OPEN
B) mixed
C) #PCDATA
D) ANY
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
45
The NMTOKEN data types cannot contain ____.

A) hyphens
B) colons
C) white space
D) any of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
46
The ____ symbol indicates that an element occurs at least once.

A) ^
B) ?
C) +
D) &
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
47
The ____ attribute default means that the attribute must appear with every occurrence of the element.

A) #MANDATED
B) #FIXED
C) #REQUIRED
D) #IMPLIED
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
48
In a DTD, a ____ symbol specifies the number of occurrences of each element.

A) specifying
B) quantifier
C) count
D) modifying
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following is accomplished by an attribute-list declaration?

A) It lists the names of all the attributes associated with a specific element.
B) It specifies the data type of each attribute.
C) It indicates whether each attribute is required or optional.
D) All of the above.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
50
If an entity's content is found within the DTD, the entity is known as a(n)____ entity.

A) internal
B) persistent
C) contained
D) consistent
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
51
The syntax for creating a conditional section is ____.

A) Declarations
]}>
B) Declarations
}}>
C) Declarations
]]>
D) Declarations
]]>
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
52
The ____ symbol is used for inserting parameter entities.

A) &
B) %
C) #
D) !
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
53
Once an ID value has been declared in a document, other attribute values can refer to it using the ____ token.

A) name
B) entity
C) IDREF
D) value
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
54
When the ____ symbol is used with a choice list, the element can contain any number of occurrences of child elements or PCDATA, or it can contain no content at all.

A) +
B) *
C) ?
D) ^
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
55
Content referenced by an entity can be either ____.

A) persistent or consistent
B) parsed or unparsed
C) static or dynamic
D) well-formed or unique
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
56
While very flexible, elements with ____ content do not add much defined structure to a document.

A) dynamic
B) mixed
C) static
D) integrated
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
57
The attributes of the attribute value type ____ contain an accepted XML name.

A) ID
B) NMTOKEN
C) IDREF
D) ENTITY
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
58
The attributes of the attribute value type ____ contain a list of entities separated by white space.

A) ENTITY
B) enumerated list
C) ENTITIES
D) ID
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
59
An entity that references content that cannot be interpreted by the XML parser is a(n)____ entity.

A) internal
B) well-formed
C) unparsed
D) dynamic
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
60
Any attribute that has been declared by the data type ID is a candidate for an ID ____.

A) property
B) element
C) link
D) reference
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
61
You tell Rosalind about the CDATA attribute type.Which of the following attribute values would NOT be allowed for an attribute of this type?

A) 25.99
B) New York, NY
C) Bob & Jenny
D) yellow
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
62
____________________ content allows an element to contain both parsed character data and child elements.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
63
Finally, you help Rosalind write the declaration of an attribute named "credits" of an element named "course." This optional attribute should contain character data, and a value of 4 should be used if an attribute value is not specified.Which of the following is an appropriate declaration of this attribute?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
64
You help Rosalind write the declaration of the "semester" attribute described in the previous problem.Which of the following is an appropriate declaration for this attribute?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
65
A(n)____________________ specifies an element's name and indicates what kind of content it can contain.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
66
The chunks into which a DTD can be broken with parameter entities are known as ____.

A) components
B) blurbs
C) links
D) modules
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
67
A(n)____________________ content model is a list of child elements that follow a defined order.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
68
DTDs use more general numbering with a(n)____________________ symbol, which specifies the number of occurrences of each element.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
69
Casey next wants to write a declaration for an element named "advanced" that he will use to record the fact that a student is advanced.This element will not contain any content.Which of the following is an appropriate element declaration for this element?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
70
Rosalind wants to define a required attribute called "semester" of an element named "course." She wants to ensure that this attribute takes on one of three values: fall, spring, or summer.Which type of attribute should she use?

A) CDATA
B) an enumerated type
C) a tokenized type
D) a value-list type
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
71
External DTDs work the same way as ____ style sheets.

A) dynamic
B) external
C) embedded
D) inline
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
72
You tell Casey that he must declare the DTD using a DOCTYPE statement.Where should the DOCTYPE go?

A) before the XML declaration
B) within the XML declaration
C) after the XML declaration and before the document's root element
D) after the document's root element
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
73
Attributes that are limited to a set of possible values are known as ____________________ types.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
74
A DOCTYPE declaration like the one in the accompanying figure is also known as a(n)____________________.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
75
Casey needs to declare an "address" element that can be used to store a student's address.If he intends to store the address as parsed character data, which of the following is an appropriate declaration for this element?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
76
Casey wants to include a declaration for an element named "note" that can contain any type of content.Which of the following is an appropriate element declaration for this element?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
77
Rosalind wants to declare a "coursenum" attribute, the values of which will be unique within the document.Which attribute type should she use?

A) CDATA
B) UNIQUE
C) ID
D) IDREF
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
78
A(n)____________________ is added to the DOCTYPE declaration to provide information about the DTD to the XML parser.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
79
In a(n)____________________ subset, the declarations are placed in an external file that is accessed from the XML document.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
80
After you teach Casey about declarations for elements with child elements, he constructs the element declaration .Given this declaration, which of the following is NOT a valid "class" element?

A) Beginner Drawing
B) One-on-One Painting
C) Oil Paintingbrushstrokes
D) Working with Clay
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 100 flashcards in this deck.