Deck 13: Working With Basic Schemas
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/100
Play
Full screen (f)
Deck 13: Working With Basic Schemas
1
Unlike DTDs, schemas do not use a single standard._________________________
True
2
The accompanying figure shows the xs:ID data type applied to the stuID attribute._________________________
True
3
XML Schema allows for ample flexibility in the date and time format.
False
4
The xs:float data type is a double precision floating point number._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
5
XML Schema supports a collection of built-in data types, but does not allow users to define their own.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
6
When the mixed attribute is set to the value "true," XML Schema assumes that the element contains both text and child elements._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
7
To specify the number of occurrences for a particular character or group of characters,
a(n)quantifier can be appended to a character type or set._________________________
a(n)quantifier can be appended to a character type or set._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
8
User-derived data types fall into three categories: list, union, and restriction._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
9
Given the accompanying figure, because the ID data type is built into the XML Schema, all elements and attributes from the XML Schema vocabulary must be identified using the xs namespace prefix.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
10
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.___________________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
11
Schemas do not allow numeric data types._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
12
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.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
13
A regular expression is a text string that defines a character pattern.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
14
The choice compositor requires that child elements must appear either only once or not at all.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
15
XML Schema divides its user-derived data types into two classes: primitive and derived._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
16
A schema is an XML document that contains validation rules for an XML vocabulary.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
17
Attributes use the same collection of data types that simple type elements do.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
18
The namespace prefix in the accompanying figure is xs.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
19
The code to specify the location of the schema file depends on whether the instance document has been placed in a namespace.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
20
The root element in any XML Schema document is the main element._________________________
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
21
The item indicated with the arrow in the accompanying figure is the XML Schema namespace ____.
A) URL
B) URC
C) URI
D) URR
A) URL
B) URC
C) URI
D) URR
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
22
To specify that an element contains both text and child elements, add the ____ attribute to the of an element.
A) double
B) multiple
C) aggregate
D) mixed
A) double
B) multiple
C) aggregate
D) mixed
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
23
____ is the most widely adopted schema standard.
A) DDML
B) RELAX
C) TREX
D) XML Schema
A) DDML
B) RELAX
C) TREX
D) XML Schema
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ compositor allows any of the child elements to appear in any order in the instance document.
A) target
B) sequence
C) all
D) choice
A) target
B) sequence
C) all
D) choice
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
25
As shown in the accompanying figure, examples of a(n)____ type of content are the value of an attribute or the textual content of an element.
A) aggregated
B) integrated
C) simple
D) complex
A) aggregated
B) integrated
C) simple
D) complex
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
26
Perhaps the most commonly used data type in XML Schema is ____.
A) sequence
B) choice
C) empty
D) string
A) sequence
B) choice
C) empty
D) string
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
27
DTDs employ a syntax called ____, which is different from the syntax used for XML.
A) SQL
B) EBNF
C) PHP
D) Perl
A) SQL
B) EBNF
C) PHP
D) Perl
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
28
A file written in XML Schema typically ends with the ____ file extension.
A).xsd
B).xst
C).xsl
D).xs
A).xsd
B).xst
C).xsl
D).xs
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
29
The maxOccurs attribute can have a value of ____ for unlimited occurrences of the child element.
A) unlimited
B) max
C) 100
D) unbounded
A) unlimited
B) max
C) 100
D) unbounded
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
30
The ____ data type allows an element to contain any text string.
A) pcdata
B) text
C) alpha
D) string
A) pcdata
B) text
C) alpha
D) string
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
31
The ____ and extension elements are important tools used by XML Schema to derive new data types and design complex content models.
A) additive
B) simpleContent
C) integrated
D) extensible
A) additive
B) simpleContent
C) integrated
D) extensible
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
32
If an element contains attributes, you have to extend the simple content model to include attributes through the use of the <____> tag.
A) extension
B) extensible
C) additive
D) integrated
A) extension
B) extensible
C) additive
D) integrated
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
33
As shown in the accompanying figure, XML Schema supports ____ types of content.
A) two
B) three
C) four
D) six
A) two
B) three
C) four
D) six
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
34
The ____ value of the use attribute means that the attribute cannot be used with the element.
A) forbid
B) preclude
C) prohibited
D) excluded
A) forbid
B) preclude
C) prohibited
D) excluded
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
35
The ____ compositor defines a specific order for the child elements.
A) choice
B) all
C) target
D) sequence
A) choice
B) all
C) target
D) sequence
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
36
By convention, the namespace prefix ____ is assigned to the XML Schema namespace in order to identify elements and attributes that belong to the XML Schema vocabulary.
A) xsl
B) xst
C) xsm
D) xsd
A) xsl
B) xst
C) xsm
D) xsd
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
37
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
A) simple
B) aggregated
C) complex
D) integrated
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
38
If both the maxOccurs and minOccurs attributes are missing, the element is assumed to occur ____.
A) zero times
B) once
C) twice
D) three times
A) zero times
B) once
C) twice
D) three times
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
39
An attribute is an example of a(n)____ type.
A) simple
B) complex
C) integrated
D) aggregated
A) simple
B) complex
C) integrated
D) aggregated
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
40
To indicate whether an attribute is required, you add the ____ attribute to the element declaration or reference.
A) optional
B) require
C) use
D) attach
A) optional
B) require
C) use
D) attach
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
41
A list data type uses ____ as the delimiter.
A) commas
B) tabs
C) white space
D) any of the above
A) commas
B) tabs
C) white space
D) any of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
42
Date values must be entered in the format ____.
A) yyyymmdd
B) yymmdd
C) yyyy-mm-dd
D) yy/mm/dd
A) yyyymmdd
B) yymmdd
C) yyyy-mm-dd
D) yy/mm/dd
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
43
The ____ facet has three values: preserve, replace, and collapse.
A) whiteSpace
B) length
C) maxExclusive
D) pattern
A) whiteSpace
B) length
C) maxExclusive
D) pattern
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
44
According to the data types defined in the accompanying figure, what is the form that the unique IDs must take?
A) SI###-###-###
B) AAA###-###-#
C) SI###-###-##
D) A###-###-#
A) SI###-###-###
B) AAA###-###-#
C) SI###-###-##
D) A###-###-#
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
45
The ____ character type is a word character.
A) \w
B) \W
C) \B
D) \b
A) \w
B) \W
C) \B
D) \b
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
46
With the xs:float data type, non-numeric values can be represented by ____.
A) INF
B) NaN
C) BIN
D) 0
A) INF
B) NaN
C) BIN
D) 0
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
47
According to the accompanying figure, the stuID values must follow the rules of what data type?
A) degreeType
B) siType
C) simple
D) string
A) degreeType
B) siType
C) simple
D) string
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
48
A ____ is a text string of word characters around a word.
A) pattern value
B) concatenation
C) precursor
D) boundary
A) pattern value
B) concatenation
C) precursor
D) boundary
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following is a category of data type in XML Schema?
A) common
B) built-in
C) static
D) dynamic
A) common
B) built-in
C) static
D) dynamic
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
50
A ____ can be appended to a character type or set to specify the number of occurrences for a particular character or group of characters.
A) certificate
B) quantifier
C) scope
D) model group
A) certificate
B) quantifier
C) scope
D) model group
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
51
The ____ facet specifies the maximum number of decimal places to the right of the decimal point in the data type's value.
A) pattern
B) enumeration
C) fractionDigits
D) length
A) pattern
B) enumeration
C) fractionDigits
D) length
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
52
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
A) token
B) dynamic
C) string
D) primitive
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
53
The ____ facet constrains the data type to a specified list of values.
A) length
B) enumeration
C) member
D) pattern
A) length
B) enumeration
C) member
D) pattern
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
54
The ____ data type is a text string containing valid XML names with no white space.
A) xs:string
B) xs:token
C) xs:NMTOKEN
D) xs:IDREFS
A) xs:string
B) xs:token
C) xs:NMTOKEN
D) xs:IDREFS
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
55
A base type is one of ____ fundamental data types not defined in terms of other types.
A) 15
B) 19
C) 25
D) 29
A) 15
B) 19
C) 25
D) 29
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
56
The ____ facet specifies the maximum number of decimals in the data type's value.
A) fractionDigits
B) totalDigits
C) whiteSpace
D) pattern
A) fractionDigits
B) totalDigits
C) whiteSpace
D) pattern
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
57
Instead of a pattern involving specific characters, you usually want a more general pattern involving ____ types that represent different kinds of characters.
A) entity
B) character
C) decimal
D) facet
A) entity
B) character
C) decimal
D) facet
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
58
A primitive data type is also known as a ____ type.
A) main
B) base
C) key
D) indexed
A) main
B) base
C) key
D) indexed
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
59
A ____ expression is a text string that defines a character pattern.
A) stated
B) defined
C) regular
D) base
A) stated
B) defined
C) regular
D) base
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
60
The ____ data type is a text string similar to the NMTOKEN data type, except that names must begin with a letter or the character ":" or "-".
A) xs:token
B) xs:ENTITY
C) xs:Name
D) xs:NCName
A) xs:token
B) xs:ENTITY
C) xs:Name
D) xs:NCName
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
61
You teach Judy about the differences between simple and complex data types.Which of the following would NOT require a complex type?
A) an element containing only text
B) an empty element containing attributes
C) an element containing child elements
D) an element containing child elements and an attribute
A) an element containing only text
B) an empty element containing attributes
C) an element containing child elements
D) an element containing child elements and an attribute
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
62
The ____________________ value of the use attribute means that the attribute must always appear with the element.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
63
DTDs employ a syntax called _________________________.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
64
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)recipeType
B)
C)recipeType
D)
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
65
Judy would like to add a definition for an attribute called "substitution" to the element definition from the previous problem.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 element
B) between the lines for and
C) between the lines for and
D) between the lines for and
A) within the definition of the
B) between the lines for
C) between the lines for
D) between the lines for and
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
66
The ____________________ value of the use attribute means that the use of the attribute is optional with the element.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
67
Judy would like to indicate that the substitution attribute mentioned in the previous problem is a required attribute.Which of the following attribute definitions shows how to accomplish this?
A)
B)
C)
D)
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
68
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)recipeName
B)recipeName
C)
D)
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
69
The string data type is ____________________ data type, which is part of the XML Schema language.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
70
Which of the following is NOT an advantage of schemas over DTDs?
A) They are more flexible than DTDs in dealing with mixed content.
B) They support more data types than DTDs.
C) They provide better support for namespaces.
D) They are simpler to create and maintain.
A) They are more flexible than DTDs in dealing with mixed content.
B) They support more data types than DTDs.
C) They provide better support for namespaces.
D) They are simpler to create and maintain.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
71
A(n)____________________ type contains a single value in XML Schema.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
72
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)
B)
C)
D)
A)
B)
C)
D)
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
73
The arrow in the accompanying figure points to the XML Schema ____________________.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
74
Judy has included the following element definition in her schema:
What type of element is ingredient?
A) an element containing only attributes
B) an element with nested children
C) an element with nested elements and attributes
D) a sequence element
What type of element is ingredient?
A) an element containing only attributes
B) an element with nested children
C) an element with nested elements and attributes
D) a sequence element
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
75
You tell Judy that there are multiple vocabularies available for schema.Which of them is the most widely adopted?
A) XML Data
B) XML Schema
C) Regular Language for XML
D) Schematron
A) XML Data
B) XML Schema
C) Regular Language for XML
D) Schematron
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
76
A(n)____ complex type has no name attribute used in the opening tag.
A) empty
B) named
C) anonymous
D) global scope
A) empty
B) named
C) anonymous
D) global scope
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
77
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"
A) occurs="1:20"
B) occurs="[1:20]"
C) use="1:20"
D) minOccurs="1" maxOccurs="20"
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
78
The XML document to be validated is called the ____________________ document.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following is a valid ID according to the accompanying figure?
A) SI333-567-88
B) M97-56-344
C) SI789-456
D) Any of the above
A) SI333-567-88
B) M97-56-344
C) SI789-456
D) Any of the above
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck
80
A(n)____________________ type contains two or more values placed within a defined structure in XML Schema.
Unlock Deck
Unlock for access to all 100 flashcards in this deck.
Unlock Deck
k this deck