Exam 3: Working With Basic Schemas

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

XML Schema was created to replicate all DTD functionality in a schema; it does not support any data types beyond what can be found in DTDs.

(True/False)
4.7/5
(40)

A primitive data type is also known as a(n) _____ type.

(Multiple Choice)
4.7/5
(34)

A regular expression is a text string that defines a character pattern .

(True/False)
4.8/5
(42)

  Which of the following is a valid ID according to the accompanying figure? Which of the following is a valid ID according to the accompanying figure?

(Multiple Choice)
4.9/5
(39)

Case 3-2 Judy has begun to apply the basic information that you have given her about schemas, and she would now like your help in mastering the details of how schemas work.  Judy has included the following element definition in her schema:      <xs:element name="ingredient">             <xs:complexType>                   <xs:sequence>                         <xs:element name="name" type="xs:string" />                         <xs:element name="amount" type="xs:string" />                   </xs:sequence>             </xs:complexType>      </xs:element> -Judy would like to indicate that the "substitution" attribute is a required attribute. Which of the following attribute definitions shows how to accomplish this?

(Multiple Choice)
4.8/5
(36)

Case 3-1 Judy wants to be able to validate the XML documents that she uses for recipes. These documents include numeric elements that specify ingredient amounts and cooking times, so you recommend that she use a schema instead of a DTD, and you teach her some of the key facts about schemas. -Which of the following is NOT an advantage of schemas over DTDs?

(Multiple Choice)
4.9/5
(36)

A file written in XML Schema typically ends with the _____ file extension.

(Multiple Choice)
4.8/5
(43)

An attribute is an example of a(n) _____ type.

(Multiple Choice)
4.7/5
(35)

A _____ is a text string of word characters around a word.

(Multiple Choice)
4.8/5
(36)

If an element contains attributes, you have to extend the simple content model to include attributes through the use of the < ____ _ > tag.

(Multiple Choice)
4.8/5
(36)

The maxOccurs attribute can have a value of _____ for unlimited occurrences of the child element.

(Multiple Choice)
5.0/5
(37)
Showing 81 - 91 of 91
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)