SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
XML XPATH
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Returns everything after the first occurrence of str2
substring-after(str1, str2)
/bookstore/book/title | //price
processor application
substring-before(str1, str2)
2. Selects all title AND price elements in the entire document
upper-case(str)
//title | //price
round(num)
books/book[last()]
3. XPath contains a library of _________
standard function
abs(num)
substring-after(str1, str2)
criteria
4. Returns true if str1 starts with str2
substring-before(str1, str2)
concat(str1, str2, str3...)
starts-with(str1, str2)
//*
5. Returns false or true
sequence
syntax
boolean(arg)
translate(str1, str2, str3)
6. Returns boolean true or boolean false
floor(num)
string(arg)
true() and false()
round(num)
7. Returns 2008
syntax
year-from-date(current-date())
//title | //price
lower-case(str)
8. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
floor(num)
contains(str1, str2)
year-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
9. Sibling nodes all have the same ______
string-join((str1, str2, str3), separator)
current-date()
parent
substring(str1, start, len)
10. Returns month value out of date passed
syntax
month-from-date(date)
parent node
concat(str1, str2, str3...)
11. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
ceiling(num)
processor application
compare(arg1, arg2)
12. Selects last book element from the children of books element
ends-with(str1, str2)
replace(str1, str2, str3)
books/book[last()]
starts-with(str1, str2)
13. Returns n-length substring from start position
substring(str1, start, len)
lower-case(str)
nodes
standard function
14. Selects first two book elements from the children of books element
Xpath operators
books/book[position()
round(num)
transformation
15. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
//book/title | //book/price
path expressions
year-from-date(current-date())
transformation
16. Selects current node
translate(str1, str2, str3)
minutes-from-time(time)
round(num)
.
17. The XPath division operator not "/" cuz "/" is used in path expressions
div
current-dateTime()
books/book[1]
minutes-from-time(time)
18. Returns false if true - true if false (negative logic)
not(arg)
hours-from-time(time)
year-from-date(current-date())
parent
19. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
Xpath operators
hours-from-time(time)
normalize-space(str)
20. Returns next highest integer
attribute node
criteria
ceiling(num)
parent node
21. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
string-join((str1, str2, str3), separator)
contains(str1, str2)
transforming
day-from-date(date)
22. Use a | to select more than one _____ (means AND)
books/book[price > 35.00]
parent
path
'/'
23. Concatenates strings together with separator between each string
not(arg)
string-join((str1, str2, str3), separator)
string(arg)
parent node
24. Selects all elements in the document
//*
nodes
year-from-date(current-date())
string-length()
25. Selects attributes
concat(str1, str2, str3...)
abs(num)
criteria
@
26. Returns next lowest integer
translate(str1, str2, str3)
month-from-date(current-date())
floor(num)
syntax
27. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
@
substring(str1, start, len)
string(arg)
28. Selects all book elements with a child element "price" with values greater than 35
concat(str1, str2, str3...)
arrays and functions
current-time()
books/book[price > 35.00]
29. Returns hour value from time passed
hours-from-time(time)
parent
index-of((item1, item2), item3...), target)
string-join((str1, str2, str3), separator)
30. Selects all book elements with an attribute isbn=
//book[@isbn]
Xpath operators
'//'
replace(str1, str2, str3)
31. Trims leading and trailing spaces
Predicates
normalize-space(str)
books/book[position()
current-date()
32. Returns length of passed string
substring-after(str1, str2)
month-from-date(date)
books/book[last()]
string-length(str)
33. Compares strings, returns 0 if same, -1 if not same
year-from-date(date)
attribute node
index-of((item1, item2), item3...), target)
compare(arg1, arg2)
34. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
//title[@*]
Xpath operators
timezone-from-time(time)
translate(str1, str2, str3)
35. Selects all the child nodes of the bookstore element
/bookstore/*
year-from-date(date)
//*
string(arg)
36. Converts value to a string
upper-case(str)
books/book[position()
div
string(arg)
37. Element nodes may have zero - one - or more _________
child nodes
//book/title | //book/price
index-of((item1, item2), item3...), target)
books/book[last()]
38. Selects from the root node
'/'
39. Replaces chars of str2 found in str1 with chars of str3
'//'
true() and false()
translate(str1, str2, str3)
nodes
40. Returns October or 10 ?
compare(arg1, arg2)
replace(str1, str2, str3)
abs(num)
month-from-date(current-date())
41. Selects all title elements which have any attribute
.
insert-before((item1, item2, item3...), positionX, itemX)
round(num)
//title[@*]
42. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
path
starts-with(str1, str2)
abs(num)
concat(str1, str2, str3...)
43. Returns complete date/time
ends-with(str1, str2)
current-dateTime()
nodes
..
44. Returns today's date
current-date()
replace(str1, str2, str3)
..
books/book[price > 35.00]
45. Returns true if str1 ends with str2
substring(str1, start, len)
child nodes
/bookstore/book/title | //price
ends-with(str1, str2)
46. Predicates work somewhat like _____________
string-join((str1, str2, str3), separator)
arrays and functions
path
round(num)
47. XML documents are treated as _________- so the root of the tree is called the document node or root node
path
trees of nodes
true() and false()
substring-before(str1, str2)
48. XPath is a major element in _______
current-date()
books/book[price > 35.00]
XSLT
current-time()
49. Selects all title AND price elements of all book elements
transformation
true() and false()
//book/title | //book/price
string-length()
50. every element and every attribute have just one _________
month-from-date(date)
matches(str1, str2)
parent node
index-of((item1, item2), item3...), target)