Deck 16: A Case Study in Database Organization

Full screen (f)
exit full mode
Question
In an XSL file, the <xsl:stylesheet . . . > tag is the root element and must be closed with the </xsl:stylesheet> tag at the end of the file .
Use Space or
up arrow
down arrow
to flip the card.
Question
The root element in an XML file is the Collective tag that encloses all items in that file .
Question
When writing XML, a word processor should be used so the color coding will be added automatically to verify the structure .
Question
An XML file uses XHTML to describe how information in the XSL file is to be displayed .
Question
The XSL file includes at least two templates for each tag in the XML tree .
Question
An <html> tag with no attributes is correct when used in XSL templates .
Question
As the transformer is processing an XML file, anything it finds that is not a tag (that is, the actual data), it puts directly into the HTML definition .
Question
When creating an XML database using an incremental approach, the first step would be to develop tags and templates .
Question
When considering the design of the XML, different data must be specified for each type of content .
Question
In the XSL file, the @ symbol is the XSL reference to the tag attribute of the XML tag .
Question
In the XSL file, the <pic> tag is a stand-alone tag that requires the <xsl:apply-templates/> tag .
Question
If the transformer encounters a tag in the XML file that does not have a matching template in the XSL file, the information will not be displayed on the page .
Question
XML databases can record irregular data that relational databases cannot .
Question
In order to display an XML database, you first need to install a database management program, like Microsoft Access .
Question
An XML database can optionally hide some of its information so it allows for the selective display of its contents .
Question
What type of tag is <xsl:apply . . . >?

A) a singleton
B) a paired tag
C) a closed tag
D) a special tag
Question
Which tag is used to specify an XML stylesheet for an XML file?

A) <href = "styles . xml">
B) <$stylesheet . . . >
C) <xml-stylesheet . . . >
D) <?xml-stylesheet . . . >
Question
An XSL file includes

A) XHTML tags
B) XML tags throughout the file
C) the standard XML tag at the end of the file
D) All of these
Question
Templates

A) are part of the XML database file
B) use JavaScript to describe how the information will be displayed
C) must be included for every tag used in the XML database file
D) describe how the information is to look without actually having the information
Question
In the XSL specification, the <xsl:apply-templates/> tag

A) requests processing of the items within the template tags
B) requires a closing tag
C) is required in all templates
D) All of these
Question
A template for a video source

A) replaces the URL copied from the iframe text with the "{@url}" reference
B) can be used for any video source so long as it works for one video
C) only works when the embedded video is from YouTube
D) is only used for iPhone videos
Question
The incremental design process

A) is especially useful when creating simple databases
B) begins with creating an initial entry in the database
C) uses a strategy of adding tags and templates, one at a time
D) All of these
Question
In the following XSL tag, which XML tag is the template for?
<xsl:template match = "address">

</xsl:template>

A) address
B) This tag refers to an XSL tag, not an XML tag .
C) match
D) There is no way to tell .
Question
Refer to the following code to answer the question: What does this code do?
<xsl:template match = "author">
<td>
<xsl:apply-template/>
</td>
</xsl:template>

A) Every time it encounters an <author> tag it will place a <td> tag in the HTML, then process the items found in the <author> tag, and then add a </td> tag .
B) It will do nothing since the apply-template tag is in the wrong place .
C) Every time it encounters a <td> tag it will process the information before the </td> with the <author> style .
D) It will do nothing since the apply-template tag does not refer to anything .
Question
You can create tags for all of these in an XML database EXCEPT

A) the title
B) the date
C) a picture
D) All of these are possible tags .
Question
In an XML database

A) not everything must be displayed
B) everything must be tagged
C) every tag must have a template to process it
D) All of these are true .
Question
Which of the following statements is incorrect?

A) Relational databases can record irregular data that XML databases cannot .
B) Relational databases are much more structured than XML databases .
C) Relational databases use queries to display information to the user .
D) An XML database can be directly displayed by opening it in a browser
Question
Select all that apply . Style information

A) can be included in an external XSL file when using XML
B) can be included in an external XSL file when using HTML
C) is irrelevant when creating a database with XML
D) tells the browser how to display a markup language like XML
Question
Select all that apply . A transformer

A) converts all tags in the XML file to HTML
B) converts all XSL styles to CSS
C) is part of the browser software
D) matches the XML tag to its template in the XSL file
Question
A(n) ________ description converts XML data into HTML so that it can be displayed on the screen using a browser .
Question
An . xsl file contains a series of rules called ________ that are used to format the information enclosed in XML tags .
Question
The <xsl:apply-templates/> tag in the XSL specification file is a stand-alone tag that means, "now ________ whatever is inside this tag . "
Question
By placing a tag attribute reference in ________ in the XSL code, the tag attribute's value from the XML is placed inside the quotes specifying the file source name .
Question
________ databases can record irregular data that relational databases cannot .
Question
XSL files must be written in a(n) ________ editor .
Question
The ________ element of an XML file is the collection tag which encloses all items in the XML file .
Question
A(n) ________ file is to an HTML file as an XSL file is to an XML file .
Question
Each different tag used in an XML tree has a matching ________ in the XSL file .
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/38
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 16: A Case Study in Database Organization
1
In an XSL file, the <xsl:stylesheet . . . > tag is the root element and must be closed with the </xsl:stylesheet> tag at the end of the file .
True
2
The root element in an XML file is the Collective tag that encloses all items in that file .
True
3
When writing XML, a word processor should be used so the color coding will be added automatically to verify the structure .
False
4
An XML file uses XHTML to describe how information in the XSL file is to be displayed .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
5
The XSL file includes at least two templates for each tag in the XML tree .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
6
An <html> tag with no attributes is correct when used in XSL templates .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
7
As the transformer is processing an XML file, anything it finds that is not a tag (that is, the actual data), it puts directly into the HTML definition .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
8
When creating an XML database using an incremental approach, the first step would be to develop tags and templates .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
9
When considering the design of the XML, different data must be specified for each type of content .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
10
In the XSL file, the @ symbol is the XSL reference to the tag attribute of the XML tag .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
11
In the XSL file, the <pic> tag is a stand-alone tag that requires the <xsl:apply-templates/> tag .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
12
If the transformer encounters a tag in the XML file that does not have a matching template in the XSL file, the information will not be displayed on the page .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
13
XML databases can record irregular data that relational databases cannot .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
14
In order to display an XML database, you first need to install a database management program, like Microsoft Access .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
15
An XML database can optionally hide some of its information so it allows for the selective display of its contents .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
16
What type of tag is <xsl:apply . . . >?

A) a singleton
B) a paired tag
C) a closed tag
D) a special tag
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
17
Which tag is used to specify an XML stylesheet for an XML file?

A) <href = "styles . xml">
B) <$stylesheet . . . >
C) <xml-stylesheet . . . >
D) <?xml-stylesheet . . . >
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
18
An XSL file includes

A) XHTML tags
B) XML tags throughout the file
C) the standard XML tag at the end of the file
D) All of these
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
19
Templates

A) are part of the XML database file
B) use JavaScript to describe how the information will be displayed
C) must be included for every tag used in the XML database file
D) describe how the information is to look without actually having the information
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
20
In the XSL specification, the <xsl:apply-templates/> tag

A) requests processing of the items within the template tags
B) requires a closing tag
C) is required in all templates
D) All of these
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
21
A template for a video source

A) replaces the URL copied from the iframe text with the "{@url}" reference
B) can be used for any video source so long as it works for one video
C) only works when the embedded video is from YouTube
D) is only used for iPhone videos
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
22
The incremental design process

A) is especially useful when creating simple databases
B) begins with creating an initial entry in the database
C) uses a strategy of adding tags and templates, one at a time
D) All of these
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
23
In the following XSL tag, which XML tag is the template for?
<xsl:template match = "address">

</xsl:template>

A) address
B) This tag refers to an XSL tag, not an XML tag .
C) match
D) There is no way to tell .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
24
Refer to the following code to answer the question: What does this code do?
<xsl:template match = "author">
<td>
<xsl:apply-template/>
</td>
</xsl:template>

A) Every time it encounters an <author> tag it will place a <td> tag in the HTML, then process the items found in the <author> tag, and then add a </td> tag .
B) It will do nothing since the apply-template tag is in the wrong place .
C) Every time it encounters a <td> tag it will process the information before the </td> with the <author> style .
D) It will do nothing since the apply-template tag does not refer to anything .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
25
You can create tags for all of these in an XML database EXCEPT

A) the title
B) the date
C) a picture
D) All of these are possible tags .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
26
In an XML database

A) not everything must be displayed
B) everything must be tagged
C) every tag must have a template to process it
D) All of these are true .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following statements is incorrect?

A) Relational databases can record irregular data that XML databases cannot .
B) Relational databases are much more structured than XML databases .
C) Relational databases use queries to display information to the user .
D) An XML database can be directly displayed by opening it in a browser
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
28
Select all that apply . Style information

A) can be included in an external XSL file when using XML
B) can be included in an external XSL file when using HTML
C) is irrelevant when creating a database with XML
D) tells the browser how to display a markup language like XML
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
29
Select all that apply . A transformer

A) converts all tags in the XML file to HTML
B) converts all XSL styles to CSS
C) is part of the browser software
D) matches the XML tag to its template in the XSL file
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) ________ description converts XML data into HTML so that it can be displayed on the screen using a browser .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
31
An . xsl file contains a series of rules called ________ that are used to format the information enclosed in XML tags .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
32
The <xsl:apply-templates/> tag in the XSL specification file is a stand-alone tag that means, "now ________ whatever is inside this tag . "
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
33
By placing a tag attribute reference in ________ in the XSL code, the tag attribute's value from the XML is placed inside the quotes specifying the file source name .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
34
________ databases can record irregular data that relational databases cannot .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
35
XSL files must be written in a(n) ________ editor .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
36
The ________ element of an XML file is the collection tag which encloses all items in the XML file .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ________ file is to an HTML file as an XSL file is to an XML file .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
38
Each different tag used in an XML tree has a matching ________ in the XSL file .
Unlock Deck
Unlock for access to all 38 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 38 flashcards in this deck.