Filters
Question type

Study Flashcards

Date values must be entered in the format _____.


A) yyyymmdd
B) yymmdd
C) yyyy-mm-dd
D) yy/mm/dd

Correct Answer

verifed

verified

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.


A) token
B) dynamic
C) string
D) primitive

Correct Answer

verifed

verified

  As shown in the accompanying figure, examples of a(n)  _____ type of content are elements that contain attributes or elements that contain child elements. A)  simple B)  aggregated C)  complex D)  integrated As shown in the accompanying figure, examples of a(n) _____ type of content are elements that contain attributes or elements that contain child elements.


A) simple
B) aggregated
C) complex
D) integrated

Correct Answer

verifed

verified

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?


A) <xs:element id="ingredient" />
B) <xs:element idref="ingredient" />
C) <xs:element name="ingredient" ref= "existing" />
D) <xs:element ref="ingredient" />

Correct Answer

verifed

verified

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?


A) <xs:attribute type="xs:string">recipeType</xs:attribute>
B) <xs:attribute name="recipeType" type="xs:string" />
C) <xs:attribute type="PCDATA">recipeType</xs:attribute>
D) <xs:attribute name="recipeType" type="PCDATA" />

Correct Answer

verifed

verified

Which of the following is a category of data type in XML Schema?


A) common
B) built-in
C) static
D) dynamic

Correct Answer

verifed

verified

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?


A) <xs:element type="xs:string">recipeName</xs:element>
B) <xs:element type="PCDATA">recipeName</xs:element>
C) <xs:element name="recipeName" type="xs:string" />
D) <xs:element name="recipeName" type="PCDATA" />

Correct Answer

verifed

verified

The _____ facet specifies the maximum number of decimals in the data type's value.


A) fractionDigits
B) totalDigits
C) whiteSpace
D) pattern

Correct Answer

verifed

verified

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.

Correct Answer

verifed

verified

  As shown in the accompanying figure, XML Schema supports _____ types of content. A)  two B)  three C)  four D)  six As shown in the accompanying figure, XML Schema supports _____ types of content.


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

Correct Answer

verifed

verified

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?


A) occurs="1:20"
B) occurs="[1:20]"
C) use="1:20"
D) minOccurs="1" maxOccurs="20"

Correct Answer

verifed

verified

A(n) _____  data type is composed of the value and/or lexical spaces from any number of base types.

Correct Answer

verifed

verified

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?


A) within the definition of the <xs:sequence> element
B) between the lines for <xs:complexType> and <xs:sequence>
C) between the lines for </xs:sequence> and </xs:complexType>
D) between the lines for </xs:complexType> and </xs:element>

Correct Answer

verifed

verified

DTDs employ a syntax called _____.

Correct Answer

verifed

verified

Extended B...

View Answer

_____  is the most widely adopted schema standard.


A) DDML
B) RELAX
C) TREX
D) XML Schema

Correct Answer

verifed

verified

XML Schema allows for ample flexibility in the date and time format.

Correct Answer

verifed

verified

The code to specify the location of the schema file depends on whether the instance document has been placed in a namespace.

Correct Answer

verifed

verified

A(n) _____  data type is a list of values separated by white space.

Correct Answer

verifed

verified

When the mixed attribute is set to the value "true," XML Schema assumes that the element contains both text and child elements.

Correct Answer

verifed

verified

Unlike DTDs, schemas do not use a single standard.

Correct Answer

verifed

verified

Showing 21 - 40 of 91

Related Exams

Show Answer