Filters
Question type

Study Flashcards

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.

A) True
B) False

Correct Answer

verifed

verified

The syntax for creating a conditional section is _____.


A) <![ keyword [ declarations]}>
B) <![ keyword [ declarations}}>
C) </[ keyword [ declarations]]>
D) <![ keyword [ declarations]]>

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

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) ^

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

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 these are correct.

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

A(n) notation must supply a name for the data type and provide clues about how applications should handle the data.

A) True
B) False

Correct Answer

verifed

verified

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

E) B) and D)
F) A) and D)

Correct Answer

verifed

verified

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

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

Case 2-1 Casey is using XML to store information about the students in the science classes that he teaches. He wants to design a DTD that he can use to validate the XML documents that he uses for this purpose, and he comes to you for help. -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) <!ELEMENT advanced NONE>
B) <!ELEMENT advanced EMPTY>
C) <!ELEMENT advanced>
D) <!ELEMENT advanced NIL>

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

A DTD can be used to enforce a specific data structure on document content.

A) True
B) False

Correct Answer

verifed

verified

To create a parsed entity that references content from an external file using a system _____, you use the declaration <!ENTITY entity SYSTEM ? " uri ?"> .


A) identifier
B) qualifier
C) index
D) locator

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

   A DOCTYPE declaration like the one in the accompanying figure is also known as a(n) _____ . A DOCTYPE declaration like the one in the accompanying figure is also known as a(n) _____ .

Correct Answer

verifed

verified

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

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

In a DTD, a _____ symbol specifies the number of occurrences of each element.


A) specifying
B) quantifier
C) count
D) modifying

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

A DTD is entered into the document in a statement called a document _____ declaration.


A) basis
B) element
C) index
D) type

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

DTDs use more general numbering with a(n) _____  symbol, which specifies the number of occurrences of each element.

Correct Answer

verifed

verified

Case 2-1 Casey is using XML to store information about the students in the science classes that he teaches. He wants to design a DTD that he can use to validate the XML documents that he uses for this purpose, and he comes to you for help. -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) <!ELEMENT note (#PCDATA) >
B) <!ELEMENT note>
C) <!ELEMENT note ALL>
D) <!ELEMENT note ANY>

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

In a valid document, at least two elements must be declared in the DTD.

A) True
B) False

Correct Answer

verifed

verified

_____  content allows an element to contain both parsed character data and child elements.

Correct Answer

verifed

verified

What are the limitations of mixed content elements? Under what circumstances should you not use them?

Correct Answer

verifed

verified

Because they are very flexible, elements...

View Answer

Showing 21 - 40 of 91

Related Exams

Show Answer