What is XQuery?
A
A stylesheet language for XML B
A query language for querying XML data C
A protocol for transferring XML files D
A database engine for XML
Analysis & Theory
XQuery is a query language designed specifically for querying and manipulating XML data.
Which of the following is the primary goal of XQuery?
A
Styling XML for browsers B
Sending XML data to servers C
Querying, filtering, and transforming XML content D
Encrypting XML data
Analysis & Theory
XQuery is used to extract, filter, and transform XML data efficiently.
Which standard does XQuery build upon?
A
SQL B
XPath C
XSLT D
HTML
Analysis & Theory
XQuery is built on XPath and uses its syntax to navigate through XML data.
What type of output can XQuery generate?
A
Only XML B
Only HTML C
Only plain text D
XML, HTML, plain text, or other structured formats
Analysis & Theory
XQuery can output XML, HTML, or any structured data, including plain text.
Is XQuery case-sensitive?
A
No B
Yes, like most XML-related technologies C
Only for variables D
Only for element names
Analysis & Theory
Yes, XQuery is case-sensitive, meaning `$Item` and `$item` are different.
Which file extension is commonly used for XQuery files?
A
.xmlq B
.xql C
.xquery D
.xqt
Analysis & Theory
`.xquery` is the commonly used extension for XQuery scripts.
Which of the following is a basic use case of XQuery?
A
Styling XML with CSS B
Defining XML schema rules C
Extracting a list of book titles from an XML catalog D
Validating JSON structure
Analysis & Theory
XQuery can be used to extract specific data like book titles from structured XML documents.