Exam 3: Working With Basic Schemas
Exam 1: Creating an Xml Document91 Questions
Exam 2: Validating an Xml Document91 Questions
Exam 3: Working With Basic Schemas91 Questions
Exam 4: Working With Advanced Schemas91 Questions
Exam 5: Working With Xslt and Xpath91 Questions
Exam 6: Working With Xslt Functional Programming91 Questions
Exam 7: Creating Element Groups91 Questions
Exam 8: Combining Xml and Php91 Questions
Exam 9: Working With Xml and Databases91 Questions
Select questions type
Derived data types share many of the same characteristics as the _____ data types they are derived from, but with one or two additional restrictions or modifications.
(Multiple Choice)
5.0/5
(36)
As shown in the accompanying figure, XML Schema supports _____ types of content.

(Multiple Choice)
4.8/5
(36)
As shown in the accompanying figure, examples of a(n) _____ type of content are elements that contain attributes or elements that contain child elements.

(Multiple Choice)
4.8/5
(45)
Which of the following is a category of data type in XML Schema?
(Multiple Choice)
4.9/5
(36)
When data values belong to a range rather than a set of values, you can create a list of possible values using the enumeration element.
(True/False)
4.8/5
(42)
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.
-Judy has an element called "recipeName" that she uses to record the name of a recipe. This element only contains text. Which of the following would be a valid XML Schema definition for this element?
(Multiple Choice)
4.8/5
(35)
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>
-In her definition of the recipe element, Judy would like to reference the existing definition of the ingredient element. Which of the following element declarations accomplishes this?
(Multiple Choice)
4.8/5
(32)
A(n) _____ data type is a list of values separated by white space.
(Short Answer)
5.0/5
(41)
XML Schema allows for ample flexibility in the date and time format.
(True/False)
4.7/5
(34)
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 ingredient element must appear at least once in a recipe, and that it cannot appear more than 20 times. Which of the following should she add to the element declaration to indicate these restrictions?
(Multiple Choice)
4.8/5
(38)
A(n) _____ data type is composed of the value and/or lexical spaces from any number of base types.
(Short Answer)
4.9/5
(29)
The _____ facet specifies the maximum number of decimals in the data type's value.
(Multiple Choice)
4.7/5
(40)
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.
-Judy has an attribute called "recipeType" that she uses to record whether the recipe is for an appetizer, entree, dessert, or other type of dish. This attribute only contains text. Which of the following would be a valid XML Schema definition for this attribute?
(Multiple Choice)
4.9/5
(35)
When the mixed attribute is set to the value "true," XML Schema assumes that the element contains both text and child elements.
(True/False)
4.9/5
(36)
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 add a definition for an attribute called "substitution" to the element definition. It will indicate a possible substitution for the ingredient specified by the element. Where should the definition of this attribute appear in the element definition?
(Multiple Choice)
4.8/5
(33)
The code to specify the location of the schema file depends on whether the instance document has been placed in a namespace.
(True/False)
4.7/5
(37)
Showing 21 - 40 of 91
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)