Filters
Question type

Study Flashcards

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. -After you teach Casey about declarations for elements with child elements, he constructs the element declaration <!ELEMENT class ((seminar | lesson | workshop) , time?) > . Given this declaration, which of the following is NOT a valid "class" element?


A) <class><seminar>Beginner Drawing</seminar><time>Mon. 3-4</time></class>
B) <class><lesson>One-on-One Painting</lesson><time>Tues. 11-noon</time></class>
C) <class><seminar>Oil Painting</seminar><lesson>brushstrokes</lesson></class>
D) <class><workshop>Working with Clay</workshop></class>

Correct Answer

verifed

verified

The declaration _____ would permit this element in an XML document: <name>Lea Ziegler</name> .


A) <!ELEMENT products (#CHAR) >
B) <!ELEMENT products ALL>
C) <!ELEMENT products EMPTY>
D) <!ELEMENT name (#PCDATA) >

Correct Answer

verifed

verified

D

Most standard XML vocabularies have _____ identifiers.


A) public
B) strict
C) system
D) master

Correct Answer

verifed

verified

The _____ symbol is used for inserting parameter entities.


A) &
B) %
C) #
D) !

Correct Answer

verifed

verified

A(n) _____  associates the value of an attribute with a <!NOTATION> declaration that is inserted elsewhere in the DTD.

Correct Answer

verifed

verified

XML parsers interpret the _____ symbol as a reference to another entity and attempt to resolve the reference.


A) &
B) %
C) #
D) !

Correct Answer

verifed

verified

A

Attributes that are limited to a set of possible values are known as _____  types.

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 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) <!ELEMENT address (#PCDATA) >
B) <!ELEMENT address CHAR>
C) <!ELEMENT address TEXT>
D) <!ELEMENT address CDATA>

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

Correct Answer

verifed

verified

What are the five possible values for content-model  in the element declaration?

Correct Answer

verifed

verified

The content-model value can be one of th...

View Answer

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The _____ attribute default means that the attribute must appear with every occurrence of the element.


A) #MANDATED
B) #FIXED
C) #REQUIRED
D) #IMPLIED

Correct Answer

verifed

verified

A(n) _____  is added to the DOCTYPE declaration to provide information about the DTD to the XML parser.

Correct Answer

verifed

verified

Element names can contain which of the following?


A) reserved symbols
B) spaces
C) numbers
D) All of these are correct.

Correct Answer

verifed

verified

_____ is ignored within a comment, so you can spread comment text over several lines without affecting DTD code.

Correct Answer

verifed

verified

An entity whose content is found within the DTD is known as a(n) external entity.

Correct Answer

verifed

verified

False

If a processor encounters more than one declaration for the same attribute, it ignores the first statement.

Correct Answer

verifed

verified

A(n) _____  content model is a list of child elements that follow a defined order.

Correct Answer

verifed

verified

The content-model value can be one of _____ specific keywords or one of two content descriptions.


A) five
B) four
C) three
D) two

Correct Answer

verifed

verified

Showing 1 - 20 of 91

Related Exams

Show Answer