True/False
Indicate whether the sentence or statement is true
or false.
|
|
|
1.
|
Schemas have entirely replaced DTDs for document validation.
|
|
|
2.
|
Schemas can be divided into internal and external subsets but a DTD is always placed
in a separate XML document.
|
|
|
3.
|
Support for a particular schema depends solely on the XML parser being used for
validation.
|
|
|
4.
|
XML
Schema supports a collection of built-in data types but does not allow users to define their
own.
|
|
|
5.
|
Attributes use the same collection of data types that simple type elements
do.
|
|
|
6.
|
All
elements require attributes.
|
|
|
7.
|
An
attribute may be required for one element and optional for another.
|
|
|
8.
|
Where
an element or attribute is declared determines how it can be used in the schema.
|
|
|
9.
|
The
choice compositor requires that child elements must appear either only once or not at
all.
|
|
|
10.
|
You
can combine the all compositor with the choice and sequence compositors.
|
|
|
11.
|
The
minOccurs and maxOccurs attributes can also be used with compositors to repeat entire sequences of
items.
|
|
|
12.
|
XML
Schema gives you less control over mixed content than DTDs do.
|
|
|
13.
|
The
code to specify the location of the schema file depends on whether the instance document has been
placed in a namespace.
|
|
|
14.
|
Specifying a schema in an XML document is treated only as a hint by validating
parsers.
|
|
|
15.
|
XML
Schema supports four general categories of data types.
|
|
|
16.
|
Derived data types share many of the same characteristics as the primitive data types
they are derived from, but with a restriction or a modification added to create a new data
type.
|
|
|
17.
|
XML
Schema allows for ample flexibility in the date and time format.
|
|
|
18.
|
The
xs:gYear data type is a date entered in the format yyyy-mm.
|
|
|
19.
|
An
integer data type can be constrained to fall within a range of values.
|
|
|
20.
|
When
data values belong to a range rather than a set of values, you can create a list of possible values
using the enumerate element.
|
|
|
21.
|
One
way to create a restriction based on the lexical space is by using a regular
expression.
|
|
|
22.
|
The
\# character type represents a digit from 0 to 9.
|
|
|
23.
|
A
named model group is a collection of elements.
|
|
|
24.
|
Unlike elements, attributes can be grouped into collections called named attribute
groups.
|
|
|
25.
|
If
you are interested in a compact schema that mirrors the structure of the instance document, you
should use a flat catalog design.
|
|
|
26.
|
To
associate a schema with a namespace, you first declare the namespace and then make that namespace the
target of the schema.
|
|
|
27.
|
If
you choose to use a vocabularys namespace as the default namespace for a schema, you do not
have to qualify any references to customized objects in the target namespace.
|
|
|
28.
|
One
use of the include element is to access a library of schema elements that can be combined in a
variety of different ways.
|
|
|
29.
|
Once
a schema is imported, any objects it contains with local scope can be referenced.
|
Modified True/False
Indicate
whether the sentence or statement is true or false. If false, change the identified word or
phrase to make the sentence or statement true.
|
|
|
30.
|
Like DTDs, schemas do not use a single form.
_________________________
|
|
|
31.
|
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. _________________________
|
|
|
32.
|
The
root element in any XML Schema document is the main element.
_________________________
|
|
|
33.
|
All
of the attributes in a document are, by default, complex types.
_________________________
|
|
|
34.
|
Declarations that are placed as children of the root schema element have global
scope. _________________________
|
|
|
|
|
|
35.
|
The
scale attribute in the figure above has local scope. _________________________
|
|
|
36.
|
The
minOccurs and maxOccurs values must be set locally within a complex type element.
_________________________
|
|
|
37.
|
When
the aggregate attribute is set to the value true, XML Schema assumes that the
element contains both text and child elements. _________________________
|
|
|
38.
|
XML
Schema divides its user-derived data types into two classes: primitive and derived.
_________________________
|
|
|
39.
|
Commands on the View menu whose icon appears pressed in indicate that those
elements are currently displayed in the Outlook window. _________________________
|
|
|
40.
|
The
xs:NMTOKEN data type is a text string in which blank spaces are replaced with a single blank
space, and opening and closing spaces are removed. ___________________________________
|
|
|
|
|
|
41.
|
The
figure above shows the xs:IDREF data type applied to the patID attribute.
_________________________
|
|
|
42.
|
Schemas do not allow numeric data types.
_________________________
|
|
|
43.
|
The
xs:float data type is a double precision floating point number.
_________________________
|
|
|
44.
|
Built-in data types fall into three categories: list, union, and restriction.
_________________________
|
|
|
45.
|
In a
union data type a restriction is placed on the facets of the base type.
_________________________
|
|
|
46.
|
Registrations can be used to define a lower and upper range for data.
_________________________
|
|
|
47.
|
Instead of a pattern involving specific characters, you usually want a more general
pattern involving entity types that represent different kinds of characters.
_________________________
|
|
|
48.
|
A
certificate can be appended to a character type or set to specify the number of occurrences
for a particular character or group of characters. _________________________
|
Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
|
49.
|
DTDs
employ a syntax called ____, which is different from the syntax used for XML.
|
|
|
50.
|
The
idea of using XML to create a markup language that can validate other XML documents is the idea
behind ____. a. | DTDs | c. | namespaces | b. | schemas | d. | All of the above | | | | |
|
|
|
51.
|
____
is the most widely adopted schema standard. a. | DDML | c. | TREX | b. | RELAX | d. | XML Schema | | | | |
|
|
|
52.
|
A
file written in XML Schema typically ends with the ____ file extension.
|
|
|
53.
|
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.
|
|
|
54.
|
XML
Schema supports ____ types of content.
|
|
|
55.
|
Examples of a(n) ____ type of content are the value of an attribute or the textual
content of an element. a. | aggregated | c. | simple | b. | integrated | d. | complex | | | | |
|
|
|
56.
|
Examples of a(n) ____ type of content are empty elements that contain attributes or
elements that contain child elements. a. | simple | c. | complex | b. | aggregated | d. | integrated | | | | |
|
|
|
57.
|
Perhaps the most commonly used data type in XML Schema is ____. a. | sequence | c. | empty | b. | choice | d. | string | | | | |
|
|
|
58.
|
The
____ data type allows an element to contain any text string. a. | pcdata | c. | alpha | b. | text | d. | string | | | | |
|
|
|
59.
|
An
attribute is an example of a(n) ____ type. a. | simple | c. | integrated | b. | complex | d. | aggregated | | | | |
|
|
|
60.
|
If am
element contains attributes, you have to extend the simple content model to include attributes
through the use of the <____> tag. a. | extension | c. | additive | b. | extensible | d. | integrated | | | | |
|
|
|
61.
|
The
____ and extension elements are important tools used by XML Schema to derive new data types and
design complex content models. a. | additive | c. | integrated | b. | simpleContent | d. | extensible | | | | |
|
|
|
62.
|
To
indicate whether an attribute is required, you add the ____ attribute to the element declaration or
reference. a. | optional | c. | use | b. | require | d. | attach | | | | |
|
|
|
63.
|
The
____ value of the use attribute means that the attribute cannot be used with the
element. a. | forbid | c. | prohibited | b. | preclude | d. | excluded | | | | |
|
|
|
64.
|
Declarations with ____ scope can be referenced throughout the schema
file. a. | global | c. | wide | b. | local | d. | full | | | | |
|
|
|
65.
|
Declarations with ____ scope are available only to a given complex
type. a. | local | c. | minor | b. | global | d. | limited | | | | |
|
|
|
66.
|
The
____ compositor defines a specific order for the child elements. a. | choice | c. | target | b. | all | d. | sequence | | | | |
|
|
|
67.
|
The
____ compositor allows any one of the child elements to appear in the instance
document. a. | choice | c. | target | b. | sequence | d. | all | | | | |
|
|
|
68.
|
The
____ compositor allows any of the child elements to appear in any order in the instance
document. a. | target | c. | all | b. | sequence | d. | choice | | | | |
|
|
|
69.
|
Any
time the minOccurs attribute is set to ____ the declared item is optional.
|
|
|
70.
|
The
maxOccurs attribute can have a value of ____ for unlimited occurrences of the child
element. a. | unlimited | c. | 100 | b. | max | d. | unbounded | | | | |
|
|
|
71.
|
If
both the maxOccurs and minOccurs attributes are missing, their values are assumed to be
____.
|
|
|
72.
|
To
specify that an element contains both text and child elements, add the ____ attribute to the
<complexType> of an element. a. | double | c. | aggregate | b. | multiple | d. | mixed | | | | |
|
|
|
73.
|
Which
of the following is a category of data type in XML Schema? a. | common | c. | static | b. | built-in | d. | dynamic | | | | |
|
|
|
74.
|
Which
of the following is a class of built-in data type? a. | simple | c. | dynamic | b. | complex | d. | primitive | | | | |
|
|
|
75.
|
A
primitive data type is also known as a ____ type. a. | main | c. | key | b. | base | d. | indexed | | | | |
|
|
|
76.
|
A
base type is one of ____ fundamental data types not defined in terms of other types.
|
|
|
77.
|
A
derived data type is a collection of ____ data types that the XML Schema developers created based on
the primitive types.
|
|
|
78.
|
The
____ data type is a text string containing valid XML names with no white space. a. | xs:string | c. | xs:NMTOKEN | b. | xs:token | d. | xs:IDREFS | | | | |
|
|
|
79.
|
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 | c. | xs:Name | b. | xs:ENTITY | d. | xs:NCName | | | | |
|
|
|
80.
|
Which
of the following is NOT a primitive data type? a. | decimal | c. | unary | b. | double | d. | float | | | | |
|
|
|
81.
|
With
the xs:float data type, non-numeric values can be represented by ____.
|
|
|
82.
|
Date
values must be entered in the format ____. a. | yyyymmdd | c. | yyyy-mm-dd | b. | yymmdd | d. | yy/mm/dd | | | | |
|
|
|
83.
|
A
list data type uses ____ as the delimiter. a. | commas | c. | white space | b. | tabs | d. | Any of the
above | | | | |
|
|
|
84.
|
The
____ facet constrains the data type to a specified list of values. a. | length | c. | member | b. | enumeration | d. | pattern | | | | |
|
|
|
85.
|
The
____ facet specifies the length of the data type in characters or items. a. | length | c. | class | b. | list | d. | pattern | | | | |
|
|
|
86.
|
The
____ facet constrains the lexical space of the data type to follow a specific character
pattern. a. | whiteSpace | c. | length | b. | pattern | d. | totalDigits | | | | |
|
|
|
87.
|
The
____ facet has three values: preserve, replace, and collapse. a. | whiteSpace | c. | maxExclusive | b. | length | d. | pattern | | | | |
|
|
|
88.
|
The
____ facet constrains the data type to be less than a maximum value. a. | fractionDigits | c. | maxExclusive | b. | minInclusive | d. | totalDigits | | | | |
|
|
|
89.
|
The
____ facet specifies the maximum number of decimal places to the right of the decimal point in the
data types value. a. | pattern | c. | fractionDigits | b. | enumeration | d. | length | | | | |
|
|
|
90.
|
The
____ facet specifies the maximum number of decimals in the data types value. a. | fractionDigits | c. | whiteSpace | b. | totalDigits | d. | pattern | | | | |
|
|
|
91.
|
A
____ expression is a text string that defines a character pattern. a. | stated | c. | regular | b. | defined | d. | base | | | | |
|
|
|
92.
|
The
____ character type is a boundary around a word.
|
|
|
93.
|
The
____ character type is a white space character.
|
|
|
94.
|
The
____ character set matches any lowercase letter. a. | [A-Z] | c. | [a-z] | b. | [a-zA-Z] | d. | [chars] | | | | |
|
|
|
95.
|
A(n)
____ complex type has no name attribute used in the opening <complexType> tag. a. | empty | c. | anonymous | b. | named | d. | global scope | | | | |
|
|
|
96.
|
In
a(n) ____ design, all declarations are made globally. a. | Russian
doll | c. | flat
catalog | b. | Venetian blind | d. | aggregated | | | | |
|
|
|
97.
|
A(n)
____ design has only one global element with everything else nested inside of it. a. | Venetian
blind | c. | Russian
doll | b. | flat
catalog | d. | aggregated | | | | |
|
|
|
98.
|
A(n)
____ design does not declare elements and attributes globally but instead creates named types and
references those types within a single global element. a. | Russian
doll | c. | Venetian
blind | b. | aggregated | d. | flat catalog | | | | |
|
Completion
Complete each sentence or
statement.
|
|
|
99.
|
DTDs
employ a syntax called ____________________.
|
|
|
100.
|
A(n)
____________________ is an XML document that can validate the content and structure of other XML
documents.
|
|
|
101.
|
The
XML document to be validated is called the ____________________ document.
|
|
|
102.
|
A(n)
____________________ type contains a single value in XML Schema.
|
|
|
103.
|
A(n)
____________________ type contains one or more values placed within a defined structure in XML
Schema.
|
|
|
104.
|
The
____________________ value of the use attribute means that the attribute must always appear with the
element.
|
|
|
105.
|
The
____________________ value of the use attribute means that the use of the attribute is optional with
the element.
|
|
|
106.
|
Declarations that are placed as children of the root schema element have
____________________ scope.
|
|
|
107.
|
A
declaration that is nested within a complex type has ____________________ scope.
|
|
|
108.
|
A(n)
____________________ data type is part of the XML Schema language and is available to all XML Schema
authors.
|
|
|
109.
|
A(n)
____________________ data type is created by a schema author for specific data values in an instance
document.
|
|
|
110.
|
A(n)
____________________ data type, or base type, is one of the fundamental data types that are not
defined in terms of other types.
|
|
|
111.
|
A(n)
____________________ data type is a collection of data types that the XML Schema developers created
based on the primitive types.
|
|
|
112.
|
In a
new data type, the ____________________ is the set of values that correspond to the data
type.
|
|
|
113.
|
In a
new data type, the ____________________ is the set of textual representations of the value
space.
|
|
|
114.
|
In a
new data type, the ____________________ are the properties that distinguish one data type from
another.
|
|
|
115.
|
A(n)
____________________ data type is a list of values separated by white space.
|
|
|
116.
|
A(n)
____________________ data type is composed of the value and/or lexical spaces from any number of base
types.
|
|
|
117.
|
Each
of the base types in a union data type is known as a(n) ____________________ type.
|
Matching
|
|
|
Identify the letter of the choice that best matches the phrase or
definition. a. | schema | e. | local
scope | b. | instance document | f. | compositor | c. | complex
type | g. | primitive | d. | global scope | h. | facet | | | | |
|
|
|
118.
|
Data
type, another name for which is the base type
|
|
|
119.
|
An
XML document to be validated by a schema
|
|
|
120.
|
Allows declarations to be referenced throughout a schema file
|
|
|
121.
|
Properties that distinguish one data type from another
|
|
|
122.
|
Content that contains one or more values placed within a defined
structure
|
|
|
123.
|
Examples in XML Schema include sequence, choice, and all
|
|
|
124.
|
An
XML document that can validate the content and structure of other XML documents
|
|
|
125.
|
Allows declarations to be available only to a given complex type
|