Deck 6: Working With Xslt Functional Programming

Full screen (f)
exit full mode
Question
XSLT variables act more like constants because the value of an XSLT variable can only be defined once and it cannot be further updated.
Use Space or
up arrow
down arrow
to flip the card.
Question
To operate recursively, a function must call itself employing the base case.
Question
If XPath is unable to calculate a value because of an error in the style sheet, it will return the text string "NaN" (Not a Number) .
Question
The XPath 1.0 numeric function ceiling ( number ) rounds number up to the next integer.
Question
The copy element creates a(n) deep copy of the active node.
Question
Variables are accessed using the reference @name where name is the variable name.
Question
Do not use the   entity to generate white space, even if you are generating HTML code, because that entity will not be recognized by the XSLT processor.
Question
The normalize-space() function can also be used to remove extraneous white space characters from the beginning or end of any text string.
Question
A(n) recursive template is a template that is not matched to a node set but instead acts like a function to display a calculated value or perform an operation.
Question
Named templates can be used to store variable values by having the last action of the template use the value-of element to set the variable value.
Question
If you place the include element at the beginning of your style sheet it will have precedence over the active style sheet.
Question
The copy-of element is similar to the copy element, as both create a deep copy of a node set.
Question
In XSLT, a variable name can start with a number.
Question
The copy element under XSLT 2.0 also supports the inherit-namespace attribute.
Question
The only element that the call-template element can contain is the with-param element.
Question
In XSLT, a variable can store a section of code.
Question
XSLT and XPath 1.0 support three data types for numbers.
Question
XSLT and XPath 1.0 support only one data type for numbers- double precision floating point.
Question
In general, you should use the number() function for numbering the nodes in the result document.
Question
The identity template matches any kind of node in the source document and copies them to the result document.
Question
The _____ function will return a value of true if the document exists and is well-formed.

A) unparsed-text-available()
B) text-available()
C) doc-text-available()
D) doc-available()
Question
One way of accessing data from multiple source documents within an XSLT style sheet is by using the _____ unparsed-text() function.

A) XPath 2.0
B) XSLT 1.0
C) XSLT 2.0
D) XPath 1.0
Question
When using the document() function, you must enter the URI for a path on the local machine prefaced with _____, and any spaces or special characters must be replaced with escape codes.

A) file:///
B) file:
C) uri://
D) file:\\
Question
If the expression is a number or Boolean value, the _____ element converts the expression to a text string and the text is output to the result document.

A) export
B) concatenate
C) copy-of
D) deep-copy
Question
One way of accessing data from multiple source documents within an XSLT style sheet is by using the _____ doc() function.

A) XPath 2.0
B) XSLT 1.0
C) XSLT 2.0
D) XPath 1.0
Question
The number format symbol _____ is a placeholder that displays required digits in the formatted number.

A) #
B) %
C) 0
D) )
Question
In XSLT, a variable can store a _____.

A) numeric value
B) text string
C) node set from an XML document
D) All of these are correct.
Question
The number format symbol _____ is a placeholder that displays an optional number of digits in the formatted number and is usually used as the far left symbol in the number format.

A) 0
B) %
C) #
D) )
Question
The number format symbol _____ separates the pattern for positive numbers from the pattern for negative numbers.

A) ;
B) #
C) ,
D) )
Question
Many editors, including the Firefox browser, do not support the _____ attribute and will instead display the text of the file, including the HTML markup tags.

A) indent
B) disable-output-escaping
C) disable-unparsed-text
D) enable-parsed-text
Question
If you only want to copy the descendent elements and attributes of the summary element but not the summary element itself, use the wildcard character (_____) in the copy-of element structure.

A) @
B) %
C) &
D) *
Question
The number format symbol _____ separates groups of digits in the number.

A) ;
B) #
C) )
D) ,
Question
One way to create a lookup table is to use the _____ function, which returns the active node being processed in the style sheet.

A) lookup()
B) current()
C) immediate()
D) import-table()
Question
If you are concerned about name conflicts and want the active style sheet to always have precedence over the external sheet, always use the _____ element.

A) import
B) include
C) copy
D) priority
Question
The _____ element includes the contents of an external style sheet file in the current style sheet.

A) xsl:include
B) xsl:variable
C) xsl:import
D) xsl:concatenate
Question
The expression format-number(-238.2, '#,##0.0;(#,##0.0) ') displays the value -238.2 as _____.

A) (238.20)
B) -238.2
C) (238.2)
D) -238.20
Question
The number format symbol _____ separates the integer digits from the fractional digits.

A) )
B) ;
C) ,
D) #
Question
Variables that contain text strings should enclose those text strings within a separate set of _____.

A) parentheses
B) quotation marks
C) angle brackets
D) square brackets
Question
The XPath 1.0 numeric function _____ rounds number up to the next integer.

A) ceiling( number )
B) floor( number )
C) top( number )
D) round( number )
Question
The XPath 1.0 numeric function _____ counts the number of items in values .

A) number( values )
B) sum( values )
C) count( values )
D) ceiling( values )
Question
_____ programming relies on the evaluation of functions and expressions, rather than on the sequential execution of commands.

A) Functional
B) Procedural
C) Recursive
D) Object-oriented
Question
Which of the following shows the correct result of the concat function: concat("October ", "10, ", "2017") ?

A) "October 10, 2017"
B) "October10,2017"
C) "October"
D) "October 10,2017"
Question
To set the value of a template parameter, use the _____ element.

A) param
B) with-param
C) set-param
D) as-param
Question
Which of the following shows the correct syntax of the function supported by XSLT 2.0 to retrieve non-XML data?

A) unparsed-text(uri [,encoding])
B) parsed-text(uri [,encoding])
C) unparsed-text(encoding [,uri])
D) parsed-text(encoding [,uri])
Question
Which of the following shows the correct syntax of the element used to import an external style sheet in the active style sheet?

A)
B)
C)
D)
Question
Which of the following shows the correct syntax of the element used to include an external style sheet in the active style sheet?

A)
B)
C)
D)
Question
The _____ attribute of the decimal-format element represents the character used to separate the integer and fractional parts of the number.

A) decimal-separator
B) grouping-separator
C) pattern-separator
D) digit
Question
Which of the following shows the correct syntax of the function used to test for the existence of an XML document?

A) exists(uri)
B) doc-available(uri)
C) doc-exists(uri)
D) available(uri)
Question
Which of the following shows the correct result of the substring-after function: substring-after("2017-10-05", "-") ?

A) "-"
B) "05"
C) "10-05"
D) "-10"
Question
White space nodes are nodes that contain only white space characters such as _____.

A) blanks
B) line returns
C) tabs
D) All of these are correct.
Question
The _____ attribute of the decimal-format element represents text used to represent entries that are not numbers.

A) minus-sign
B) zero-digit
C) pattern-separator
D) NaN
Question
The _____ attribute of the decimal-format element represents the character used to represent negative values.

A) minus-sign
B) NaN
C) zero-digit
D) pattern-separator
Question
_____ is the process by which a function calls itself.

A) Iteration
B) Resolution
C) Reflection
D) Recursion
Question
Parameters created in XSLT 2.0 also support the _____ attribute to define the data type of the parameter value.

A) as
B) data-type
C) type
D) in
Question
Which of the following shows the correct result of the substring-before function: substring-before("2017-10-05", "-") ?

A) "2017-"
B) "2017"
C) "-"
D) "05"
Question
Which of the following shows the correct result of the substring function: substring("Harpe Gaming Store", 7, 6) ?

A) "Gaming"
B) "g Store"
C) "Harpe G"
D) " Store"
Question
If you want to insure that white space nodes are not deleted, you can apply the _____ element as a direct child of the stylesheet element.

A) maintain-space
B) preserve-space
C) normalize-space
D) hold-space
Question
Which of the following shows the correct result of the nested substring functions: substring-before(substring-after("2017-10-05", "-") , "-") ?

A) "-"
B) "05"
C) "2017"
D) "10"
Question
A(n) _____ template is a template that is not matched to a node set but instead acts like a function to display a calculated value or perform an operation.

A) unmatched
B) function
C) named
D) operator
Question
Many of the XPath functions work with sections of text strings called _____.

A) pseudostrings
B) superstrings
C) substrings
D) instrings
Question
The _____ function is an XSLT 1.0 function used to access the contents of an external XML file.
Question
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. George was able to successfully access the functions in the surveyfunctions.xsl file from his new style sheet. However, he is having difficulty getting the functions to work. In looking over his code, you remind him that a function in a named template has to be _____ to be used.</strong> A) called B) applied C) implemented D) inserted <div style=padding-top: 35px>  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
George was able to successfully access the functions in the surveyfunctions.xsl file from his new style sheet. However, he is having difficulty getting the functions to work. In looking over his code, you remind him that a function in a named template has to be _____ to be used.

A) called
B) applied
C) implemented
D) inserted
Question
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. The response attribute of the question element in George's surveys.xml file can contain paragraphs of text. Which of the following shows the code George could use to insure any white space in the response does not get stripped out when the final file is displayed?</strong> A) <xsl:preserve-space elements=* /> B) <xsl:normalize-space elements=* /> C) <xsl:maintain-space elements=* /> D) <xsl:preserve-space select=* /> <div style=padding-top: 35px>  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
The response attribute of the question element in George's surveys.xml file can contain paragraphs of text. Which of the following shows the code George could use to insure any white space in the response does not get stripped out when the final file is displayed?

A)
B)
C)
D)
Question
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function contains a change of state that occurs when the base case has not been reached. In the drawImages template, you explain to her that the change of state is represented by the code _____.</strong> A) <xsl:if test=$imgCount > 0> B) <xsl:with-param name=imgFile select=$imgFile /> C) <img src={$imgFile} alt= /> D) <xsl:with-param name=imgCount select=$imgCount - 1 /> <div style=padding-top: 35px>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function contains a change of state that occurs when the base case has not been reached. In the drawImages template, you explain to her that the change of state is represented by the code _____.

A)
B)
C)
D)
Question
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. The source document contains data for thousands of surveys. George would like to display information for only the first six surveys. Which of the following shows the correct syntax for the predicate George should use to insure only the first six surveys are displayed?</strong> A) [position() <= 5] B) [position() = 5] C) [position() <= 5] D) [position() < 6] <div style=padding-top: 35px>  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
The source document contains data for thousands of surveys. George would like to display information for only the first six surveys. Which of the following shows the correct syntax for the predicate George should use to insure only the first six surveys are displayed?

A) [position() <= 5]
B) [position() = 5]
C) [position() <= 5]
D) [position() < 6]
Question
A(n) _____ is a collection of data values that can be searched in order to return data that matches a supplied key value.
Question
Which of the following if elements tests whether the context node is in the third position in the result document?

A)
B)
C)
D)
Question
Many of the XPath functions work with sections of text strings called _____.
Question
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function contains a base case that represents a stopping condition. In the drawImages template, you explain to her that the function would reach the base case when _____.</strong> A) $imgCount < 0 B) $imgCount = 0 C) $imgCount - 1 > 0 D) $imgCount =  <div style=padding-top: 35px>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function contains a base case that represents a stopping condition. In the drawImages template, you explain to her that the function would reach the base case when _____.

A) $imgCount < 0
B) $imgCount = 0
C) $imgCount - 1 > 0
D) $imgCount = ""
Question
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. One of George's research associates has created a style sheet named surveyfunctions.xsl containing functions that will be used in displaying the survey data. Which of the following shows the correct code George should enter in his new style sheet to allow him to use the functions in the surveyfunctions.xsl file?</strong> A) <xsl:include uri=surveyfunctions.xsl /> B) <xsl:apply-templates select=surveyfunctions.xsl /> C) <xsl:include href=surveyfunctions.xsl /> D) <xsl:copy-of select=surveyfunctions.xsl /> <div style=padding-top: 35px>  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
One of George's research associates has created a style sheet named surveyfunctions.xsl containing functions that will be used in displaying the survey data. Which of the following shows the correct code George should enter in his new style sheet to allow him to use the functions in the surveyfunctions.xsl file?

A)
B)
C)
D)
Question
One approach to including markup tags as part of an element's value is to place the HTML code within a(n) _____ section.
Question
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that it is possible to use a named template to store a variable value. You tell her she can do this having the last action of the template use the _____ element to set the variable value.</strong> A) name B) with-param C) value-of D) select <div style=padding-top: 35px>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that it is possible to use a named template to store a variable value. You tell her she can do this having the last action of the template use the _____ element to set the variable value.

A) name
B) with-param
C) value-of
D) select
Question
Some XSLT processors strip _____ nodes, which are nodes that contain only white space characters such as blanks, line returns, or tabs.
Question
The _____ element creates a variable as a user-defined name that stores a value or an object.
Question
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. George knows that the position() function returns the position of the node as it is displayed within the result document, not necessarily the position of the node in the source document. Which element do you suggest George use to retrieve the position values of the nodes as they appeared in the source document?</strong> A) location B) number C) source-position D) source-value <div style=padding-top: 35px>  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
George knows that the position() function returns the position of the node as it is displayed within the result document, not necessarily the position of the node in the source document. Which element do you suggest George use to retrieve the position values of the nodes as they appeared in the source document?

A) location
B) number
C) source-position
D) source-value
Question
The _____ function specifies the text format of numeric values.
Question
The _____ element includes the contents of an external style sheet file in the current style sheet.
Question
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function function must call itself employing the change of state. In the drawImages template, you explain to her that this call is represented by the code _____.</strong> A) <xsl:call-template name=drawImages> B) <xsl:with-param name=imgFile select=$imgFile /> C) <xsl:if test=$imgCount > 0> D) <xsl:template name=drawImages> <div style=padding-top: 35px>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function function must call itself employing the change of state. In the drawImages template, you explain to her that this call is represented by the code _____.

A)
B)
C)
D)
Question
Which of the following expressions can be used to display the value of the active node?

A)
B)
C)
D)
Question
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena would like to insert a blank space in the result document after the drawImages template runs. You tell her she can do this using the code _____.</strong> A) <xsl:text> </xsl:text> B) <xsl:text></xsl:text> C) <xsl:text /> D) <xsl:text>nbsp;</xsl:text> <div style=padding-top: 35px>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena would like to insert a blank space in the result document after the drawImages template runs. You tell her she can do this using the code _____.

A)
B)
C)
D) "nbsp;"
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/91
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Working With Xslt Functional Programming
1
XSLT variables act more like constants because the value of an XSLT variable can only be defined once and it cannot be further updated.
True
2
To operate recursively, a function must call itself employing the base case.
False
3
If XPath is unable to calculate a value because of an error in the style sheet, it will return the text string "NaN" (Not a Number) .
True
4
The XPath 1.0 numeric function ceiling ( number ) rounds number up to the next integer.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
5
The copy element creates a(n) deep copy of the active node.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
6
Variables are accessed using the reference @name where name is the variable name.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
7
Do not use the   entity to generate white space, even if you are generating HTML code, because that entity will not be recognized by the XSLT processor.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
8
The normalize-space() function can also be used to remove extraneous white space characters from the beginning or end of any text string.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
9
A(n) recursive template is a template that is not matched to a node set but instead acts like a function to display a calculated value or perform an operation.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
10
Named templates can be used to store variable values by having the last action of the template use the value-of element to set the variable value.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
11
If you place the include element at the beginning of your style sheet it will have precedence over the active style sheet.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
12
The copy-of element is similar to the copy element, as both create a deep copy of a node set.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
13
In XSLT, a variable name can start with a number.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
14
The copy element under XSLT 2.0 also supports the inherit-namespace attribute.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
15
The only element that the call-template element can contain is the with-param element.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
16
In XSLT, a variable can store a section of code.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
17
XSLT and XPath 1.0 support three data types for numbers.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
18
XSLT and XPath 1.0 support only one data type for numbers- double precision floating point.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
19
In general, you should use the number() function for numbering the nodes in the result document.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
20
The identity template matches any kind of node in the source document and copies them to the result document.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
21
The _____ function will return a value of true if the document exists and is well-formed.

A) unparsed-text-available()
B) text-available()
C) doc-text-available()
D) doc-available()
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
22
One way of accessing data from multiple source documents within an XSLT style sheet is by using the _____ unparsed-text() function.

A) XPath 2.0
B) XSLT 1.0
C) XSLT 2.0
D) XPath 1.0
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
23
When using the document() function, you must enter the URI for a path on the local machine prefaced with _____, and any spaces or special characters must be replaced with escape codes.

A) file:///
B) file:
C) uri://
D) file:\\
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
24
If the expression is a number or Boolean value, the _____ element converts the expression to a text string and the text is output to the result document.

A) export
B) concatenate
C) copy-of
D) deep-copy
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
25
One way of accessing data from multiple source documents within an XSLT style sheet is by using the _____ doc() function.

A) XPath 2.0
B) XSLT 1.0
C) XSLT 2.0
D) XPath 1.0
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
26
The number format symbol _____ is a placeholder that displays required digits in the formatted number.

A) #
B) %
C) 0
D) )
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
27
In XSLT, a variable can store a _____.

A) numeric value
B) text string
C) node set from an XML document
D) All of these are correct.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
28
The number format symbol _____ is a placeholder that displays an optional number of digits in the formatted number and is usually used as the far left symbol in the number format.

A) 0
B) %
C) #
D) )
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
29
The number format symbol _____ separates the pattern for positive numbers from the pattern for negative numbers.

A) ;
B) #
C) ,
D) )
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
30
Many editors, including the Firefox browser, do not support the _____ attribute and will instead display the text of the file, including the HTML markup tags.

A) indent
B) disable-output-escaping
C) disable-unparsed-text
D) enable-parsed-text
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
31
If you only want to copy the descendent elements and attributes of the summary element but not the summary element itself, use the wildcard character (_____) in the copy-of element structure.

A) @
B) %
C) &
D) *
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
32
The number format symbol _____ separates groups of digits in the number.

A) ;
B) #
C) )
D) ,
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
33
One way to create a lookup table is to use the _____ function, which returns the active node being processed in the style sheet.

A) lookup()
B) current()
C) immediate()
D) import-table()
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
34
If you are concerned about name conflicts and want the active style sheet to always have precedence over the external sheet, always use the _____ element.

A) import
B) include
C) copy
D) priority
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
35
The _____ element includes the contents of an external style sheet file in the current style sheet.

A) xsl:include
B) xsl:variable
C) xsl:import
D) xsl:concatenate
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
36
The expression format-number(-238.2, '#,##0.0;(#,##0.0) ') displays the value -238.2 as _____.

A) (238.20)
B) -238.2
C) (238.2)
D) -238.20
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
37
The number format symbol _____ separates the integer digits from the fractional digits.

A) )
B) ;
C) ,
D) #
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
38
Variables that contain text strings should enclose those text strings within a separate set of _____.

A) parentheses
B) quotation marks
C) angle brackets
D) square brackets
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
39
The XPath 1.0 numeric function _____ rounds number up to the next integer.

A) ceiling( number )
B) floor( number )
C) top( number )
D) round( number )
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
40
The XPath 1.0 numeric function _____ counts the number of items in values .

A) number( values )
B) sum( values )
C) count( values )
D) ceiling( values )
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
41
_____ programming relies on the evaluation of functions and expressions, rather than on the sequential execution of commands.

A) Functional
B) Procedural
C) Recursive
D) Object-oriented
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following shows the correct result of the concat function: concat("October ", "10, ", "2017") ?

A) "October 10, 2017"
B) "October10,2017"
C) "October"
D) "October 10,2017"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
43
To set the value of a template parameter, use the _____ element.

A) param
B) with-param
C) set-param
D) as-param
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following shows the correct syntax of the function supported by XSLT 2.0 to retrieve non-XML data?

A) unparsed-text(uri [,encoding])
B) parsed-text(uri [,encoding])
C) unparsed-text(encoding [,uri])
D) parsed-text(encoding [,uri])
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following shows the correct syntax of the element used to import an external style sheet in the active style sheet?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following shows the correct syntax of the element used to include an external style sheet in the active style sheet?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
47
The _____ attribute of the decimal-format element represents the character used to separate the integer and fractional parts of the number.

A) decimal-separator
B) grouping-separator
C) pattern-separator
D) digit
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following shows the correct syntax of the function used to test for the existence of an XML document?

A) exists(uri)
B) doc-available(uri)
C) doc-exists(uri)
D) available(uri)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following shows the correct result of the substring-after function: substring-after("2017-10-05", "-") ?

A) "-"
B) "05"
C) "10-05"
D) "-10"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
50
White space nodes are nodes that contain only white space characters such as _____.

A) blanks
B) line returns
C) tabs
D) All of these are correct.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
51
The _____ attribute of the decimal-format element represents text used to represent entries that are not numbers.

A) minus-sign
B) zero-digit
C) pattern-separator
D) NaN
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
52
The _____ attribute of the decimal-format element represents the character used to represent negative values.

A) minus-sign
B) NaN
C) zero-digit
D) pattern-separator
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
53
_____ is the process by which a function calls itself.

A) Iteration
B) Resolution
C) Reflection
D) Recursion
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
54
Parameters created in XSLT 2.0 also support the _____ attribute to define the data type of the parameter value.

A) as
B) data-type
C) type
D) in
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following shows the correct result of the substring-before function: substring-before("2017-10-05", "-") ?

A) "2017-"
B) "2017"
C) "-"
D) "05"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following shows the correct result of the substring function: substring("Harpe Gaming Store", 7, 6) ?

A) "Gaming"
B) "g Store"
C) "Harpe G"
D) " Store"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
57
If you want to insure that white space nodes are not deleted, you can apply the _____ element as a direct child of the stylesheet element.

A) maintain-space
B) preserve-space
C) normalize-space
D) hold-space
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following shows the correct result of the nested substring functions: substring-before(substring-after("2017-10-05", "-") , "-") ?

A) "-"
B) "05"
C) "2017"
D) "10"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
59
A(n) _____ template is a template that is not matched to a node set but instead acts like a function to display a calculated value or perform an operation.

A) unmatched
B) function
C) named
D) operator
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
60
Many of the XPath functions work with sections of text strings called _____.

A) pseudostrings
B) superstrings
C) substrings
D) instrings
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
61
The _____ function is an XSLT 1.0 function used to access the contents of an external XML file.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
62
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. George was able to successfully access the functions in the surveyfunctions.xsl file from his new style sheet. However, he is having difficulty getting the functions to work. In looking over his code, you remind him that a function in a named template has to be _____ to be used.</strong> A) called B) applied C) implemented D) inserted  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
George was able to successfully access the functions in the surveyfunctions.xsl file from his new style sheet. However, he is having difficulty getting the functions to work. In looking over his code, you remind him that a function in a named template has to be _____ to be used.

A) called
B) applied
C) implemented
D) inserted
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
63
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. The response attribute of the question element in George's surveys.xml file can contain paragraphs of text. Which of the following shows the code George could use to insure any white space in the response does not get stripped out when the final file is displayed?</strong> A) <xsl:preserve-space elements=* /> B) <xsl:normalize-space elements=* /> C) <xsl:maintain-space elements=* /> D) <xsl:preserve-space select=* />  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
The response attribute of the question element in George's surveys.xml file can contain paragraphs of text. Which of the following shows the code George could use to insure any white space in the response does not get stripped out when the final file is displayed?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
64
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function contains a change of state that occurs when the base case has not been reached. In the drawImages template, you explain to her that the change of state is represented by the code _____.</strong> A) <xsl:if test=$imgCount > 0> B) <xsl:with-param name=imgFile select=$imgFile /> C) <img src={$imgFile} alt= /> D) <xsl:with-param name=imgCount select=$imgCount - 1 />
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function contains a change of state that occurs when the base case has not been reached. In the drawImages template, you explain to her that the change of state is represented by the code _____.

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
65
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. The source document contains data for thousands of surveys. George would like to display information for only the first six surveys. Which of the following shows the correct syntax for the predicate George should use to insure only the first six surveys are displayed?</strong> A) [position() <= 5] B) [position() = 5] C) [position() <= 5] D) [position() < 6]  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
The source document contains data for thousands of surveys. George would like to display information for only the first six surveys. Which of the following shows the correct syntax for the predicate George should use to insure only the first six surveys are displayed?

A) [position() <= 5]
B) [position() = 5]
C) [position() <= 5]
D) [position() < 6]
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
66
A(n) _____ is a collection of data values that can be searched in order to return data that matches a supplied key value.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following if elements tests whether the context node is in the third position in the result document?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
68
Many of the XPath functions work with sections of text strings called _____.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
69
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function contains a base case that represents a stopping condition. In the drawImages template, you explain to her that the function would reach the base case when _____.</strong> A) $imgCount < 0 B) $imgCount = 0 C) $imgCount - 1 > 0 D) $imgCount =
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function contains a base case that represents a stopping condition. In the drawImages template, you explain to her that the function would reach the base case when _____.

A) $imgCount < 0
B) $imgCount = 0
C) $imgCount - 1 > 0
D) $imgCount = ""
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
70
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. One of George's research associates has created a style sheet named surveyfunctions.xsl containing functions that will be used in displaying the survey data. Which of the following shows the correct code George should enter in his new style sheet to allow him to use the functions in the surveyfunctions.xsl file?</strong> A) <xsl:include uri=surveyfunctions.xsl /> B) <xsl:apply-templates select=surveyfunctions.xsl /> C) <xsl:include href=surveyfunctions.xsl /> D) <xsl:copy-of select=surveyfunctions.xsl />  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
One of George's research associates has created a style sheet named surveyfunctions.xsl containing functions that will be used in displaying the survey data. Which of the following shows the correct code George should enter in his new style sheet to allow him to use the functions in the surveyfunctions.xsl file?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
71
One approach to including markup tags as part of an element's value is to place the HTML code within a(n) _____ section.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
72
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that it is possible to use a named template to store a variable value. You tell her she can do this having the last action of the template use the _____ element to set the variable value.</strong> A) name B) with-param C) value-of D) select
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that it is possible to use a named template to store a variable value. You tell her she can do this having the last action of the template use the _____ element to set the variable value.

A) name
B) with-param
C) value-of
D) select
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
73
Some XSLT processors strip _____ nodes, which are nodes that contain only white space characters such as blanks, line returns, or tabs.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
74
The _____ element creates a variable as a user-defined name that stores a value or an object.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
75
<strong>    George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file. George knows that the position() function returns the position of the node as it is displayed within the result document, not necessarily the position of the node in the source document. Which element do you suggest George use to retrieve the position values of the nodes as they appeared in the source document?</strong> A) location B) number C) source-position D) source-value  
George is developing an XSLT style sheet to display data from research surveys. The structure of the surveys.xml file is shown in the accompanying figure. He comes to you for assistance in preparing the final file.
George knows that the position() function returns the position of the node as it is displayed within the result document, not necessarily the position of the node in the source document. Which element do you suggest George use to retrieve the position values of the nodes as they appeared in the source document?

A) location
B) number
C) source-position
D) source-value
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
76
The _____ function specifies the text format of numeric values.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
77
The _____ element includes the contents of an external style sheet file in the current style sheet.
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
78
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena has heard that every recursive function function must call itself employing the change of state. In the drawImages template, you explain to her that this call is represented by the code _____.</strong> A) <xsl:call-template name=drawImages> B) <xsl:with-param name=imgFile select=$imgFile /> C) <xsl:if test=$imgCount > 0> D) <xsl:template name=drawImages>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena has heard that every recursive function function must call itself employing the change of state. In the drawImages template, you explain to her that this call is represented by the code _____.

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following expressions can be used to display the value of the active node?

A)
B)
C)
D)
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
80
<strong>    Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming. Helena would like to insert a blank space in the result document after the drawImages template runs. You tell her she can do this using the code _____.</strong> A) <xsl:text> </xsl:text> B) <xsl:text></xsl:text> C) <xsl:text /> D) <xsl:text>nbsp;</xsl:text>
 
Helena is studying functional programming, using the drawImages template shown in the accompanying figure as an example. She comes to you for help in learning the key features of functional programming.
Helena would like to insert a blank space in the result document after the drawImages template runs. You tell her she can do this using the code _____.

A)
B)
C)
D) "nbsp;"
Unlock Deck
Unlock for access to all 91 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 91 flashcards in this deck.