Exam 9: Working With Xml and Databases

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A query can be written using a(n) _____, which is simply an XPath expression that retrieves element and attribute nodes from a source document based on specified criteria.

Free
(Short Answer)
4.9/5
(34)
Correct Answer:
Verified

path expression

XQuery is written in text format as a collection of _____.

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

B

As with XSLT, many calculations and operations in XQuery can be performed using recursion, in which the XQuery function calls itself repeatedly until a stopping condition is met. Provide the general structure of a recursive function in XQuery, and explain the role of each part of the structure.

Free
(Essay)
4.9/5
(33)
Correct Answer:
Verified

The general structure of a recursive function in XQuery is:
declare function prefix:name ( params
{
    query expression
    return prefix : name ( param values
};
where prefix is the namespace prefix of the function, name is the function name, params are the function parameters, and query expression is the query that ends with a return statement that calls the recursive function.

  -The last statement in the FLWOR structure is always the _____ clause. -The last statement in the FLWOR structure is always the _____ clause.

(Multiple Choice)
4.8/5
(40)

For larger documents and more complicated search criteria, it is generally easier and more efficient to use _____ to transform a source document.

(Multiple Choice)
4.9/5
(36)

To calculate a summary statistic like a total, enclose the query expression within the _____ function.

(Short Answer)
4.8/5
(45)

Module library files are often saved with the file extension _____.

(Multiple Choice)
4.9/5
(38)

The path expression _____ uses a predicate to select only those store elements from the gjc_stores.xml file that operate in the state of Colorado.

(Multiple Choice)
4.8/5
(35)

When you import a library module, the module URI in the import statement must match the URI in the library module file.

(True/False)
4.7/5
(46)
Identify the letter of the choice that best matches the phrase or definition.
Used to terminate declarations in an XQuery prolog
prolog
Contains the query to be executed
!indent=yes
Standard method for creating structured documentation
declare variable
Correct Answer:
Verified
Premises:
Responses:
Used to terminate declarations in an XQuery prolog
prolog
Contains the query to be executed
!indent=yes
Standard method for creating structured documentation
declare variable
Used to set up fundamental properties of a query
$
Used to start a variable name
;
Saxon parameter used to create easily readable result text
xqdoc
Last clause in a FLWOR structure
for
Declaration used to create a variable in an XQuery prolog
main module
First clause in a FLWOR structure
return
Keyword used to create a parameter whose value is assigned by the XQuery processor
external
(Matching)
4.9/5
(24)

In an XQuery document, all string values and file references need to be enclosed within matching curly braces.

(True/False)
4.9/5
(33)

  -You can use multiple _____ clauses in a FLWOR query structure to create nested sequences. -You can use multiple _____ clauses in a FLWOR query structure to create nested sequences.

(Multiple Choice)
4.8/5
(37)

A(n) _____ module is an external XQuery file that contains only the declarations for namespaces, variables, and user-defined functions.

(Multiple Choice)
4.7/5
(33)

The prolog of an XQuery document contains a series of declarations with each declaration terminated with a _____.

(Multiple Choice)
4.8/5
(33)

A well-designed query is efficient, runs quickly, and is less prone to error. You should design your queries to be clear and concise, easy to maintain, and easy for others to interpret and edit if necessary. Describe at least three of the main principles of effective query design outlined in the tutorial.

(Essay)
4.7/5
(33)

In a FLWOR query you can include the _____ keyword within the for clause to track the number of iterations.

(Multiple Choice)
4.9/5
(40)

The XSLT doc() function is not supported in XQuery.

(True/False)
4.8/5
(42)

You cannot sort the results of a query created using a path expression.

(True/False)
4.7/5
(37)

In April 2014, the W3C gave the _____ specifications Recommendation status, indicating that it was a mature and stable language ready to be deployed in working environments.

(Short Answer)
4.8/5
(33)

In a FLWOR query, variables defined in a for or let clause act as local variables.

(True/False)
4.9/5
(39)
Showing 1 - 20 of 91
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)