0/41

Xml

You are working with this XML code snippet from the XML document cars.xml. You need to return the information about the cars built after the year 2000. What does your XQuery look like?

xml <cars> <car><make>Cadillac</make><model>Escalade</model><year>2007</year></car> <car><make>Cadillac</make><model>Escalade</model><year>2011</year></car> <car><make>Ford</make><model>Mustang</model><year>1968</year></car> <car><make>Ford</make><model>Mustang</model><year>1998</year></car> <car><make>Mercedes</make><model>C-Class</model><year>1999</year></car> <car><make>Mercedes</make><model>C-Class</model><year>2009</year></car> </cars>

1.

`doc("cars.xml")/cars/car[year>2000].data`

2.

`doc("cars.xml")/cars/car[xs:integer(year) gt 2000]`

3.

`doc("cars.xml")/cars/car[year gt 2000]`

4.

`doc("cars.xml")/cars/car[integer(year) > 2000]`

Q 1 / 41

Press C to Clear

Press R to Reset

Press N or Enter to Next or Check answer

Press 1,2,3, ... to toggle answers