What does FLWOR stand for in XQuery?
A
Find, Let, Write, Order, Read B
For, Let, Where, Order by, Return C
For, Loop, Write, Output, Read D
Filter, Limit, Where, Order, Return
Analysis & Theory
FLWOR stands for `For`, `Let`, `Where`, `Order by`, `Return` — used to iterate, bind, filter, sort, and return values.
Which clause is used to bind a sequence to a variable in XQuery?
A
where B
return C
for D
let
Analysis & Theory
`let` binds a value or expression result to a variable.
What is the purpose of the `where` clause in a FLWOR expression?
A
It binds data to a variable B
It filters the sequence based on a condition C
It formats output D
It creates XML elements
Analysis & Theory
`where` filters the result of the `for` or `let` clause based on conditions.
What does the `order by` clause do in FLWOR?
A
It filters data based on order B
It generates sequential values C
It sorts the output before returning D
It removes duplicates
Analysis & Theory
`order by` sorts the data before it's returned by the `return` clause.
What will this query return?
`for $x in (3, 1, 2) order by $x return $x`
A
3 2 1 B
1 2 3 C
x x x D
Error
Analysis & Theory
The `order by $x` sorts the sequence in ascending order: 1 2 3.
Which clause actually outputs the result in a FLWOR expression?
A
for B
return C
let D
where
Analysis & Theory
The `return` clause defines what to output for each item after filtering and sorting.
Can all parts of FLWOR (for, let, where, order by, return) be optional?
A
No, all are required B
Yes, only return is required C
Only for and return are required D
Only let and return are required
Analysis & Theory
Only `return` is required; all other parts (`for`, `let`, `where`, `order by`) are optional depending on the use case.