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. Converts string to upper case
upper-case(str)
child nodes
seconds-from-time(time)
books/book[price > 35.00]
2. Converts string to lower case
upper-case(str)
processing-instruction
//title | //price
lower-case(str)
3. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
lower-case(str)
XSLT
string-join((str1, str2, str3), separator)
4. Returns timezone value from time passed
timezone-from-time(time)
boolean(arg)
translate(str1, str2, str3)
seconds-from-time(time)
5. Returns substring from start position to end of string
books/book[position()
substring(str,start)
current-dateTime()
ends-with(str1, str2)
6. Returns false or true
insert-before((item1, item2, item3...), positionX, itemX)
boolean(arg)
matches(str1, str2)
books/book[price > 35.00]
7. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
day-from-date(date)
instinct-values(item1, item2, item3...))
minutes-from-time(time)
8. Returns true if str1 contains str2
books/book[price > 35.00]
current-date()
round(num)
contains(str1, str2)
9. Returns next lowest integer
//*
index-of((item1, item2), item3...), target)
floor(num)
'//'
10. XPath is a for defining parts of an XML document
path expressions
concat(str1, str2, str3...)
contains(str1, str2)
syntax
11. Returns year value out of the date passed
remove((item1, item2, item3...), position)
year-from-date(date)
attribute node
minutes-from-time(time)
12. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
translate(str1, str2, str3)
books/book[1]
processing-instruction
hours-from-time(time)
13. XSL is what we use to get from readable to _________
books/book[last()]
string-length()
minutes-from-time(time)
usable document
14. Returns false if true - true if false (negative logic)
nodes
not(arg)
parent
replace(str1, str2, str3)
15. Returns today's date
substring(str,start)
string-join((str1, str2, str3), separator)
insert-before((item1, item2, item3...), positionX, itemX)
current-date()
16. Returns length of passed string
starts-with(str1, str2)
substring-after(str1, str2)
string-length(str)
'/'
17. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
year-from-date(date)
books/book[position()
attribute node
trees of nodes
18. XPath is a major element in _______
transforming
XSLT
parent node
boolean(arg)
19. Selects current node
seconds-from-time(time)
.
current-date()
//title[@*]
20. Returns 2008
arrays and functions
year-from-date(current-date())
abs(num)
'/'
21. Selects all book elements with an attribute isbn=
boolean(arg)
//book[@isbn]
/bookstore/book/title | //price
translate(str1, str2, str3)
22. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
trees of nodes
ends-with(str1, str2)
..
index-of((item1, item2), item3...), target)
23. Selects first two book elements from the children of books element
string-length()
//title[@*]
books/book[position()
child nodes
24. Returns true if str1 starts with str2
substring(str,start)
starts-with(str1, str2)
translate(str1, str2, str3)
year-from-date(current-date())
25. Returns true if str2 appears anywhere inside str1
parent
abs(num)
transforming
matches(str1, str2)
26. Returns true if str1 ends with str2
ceiling(num)
ends-with(str1, str2)
number(arg)
books/book[1]
27. Trims leading and trailing spaces
normalize-space(str)
substring(str,start)
current-date()
parent
28. Returns logically rounded integer
books/book[1]
//title | //price
round(num)
usable document
29. XPath contains a library of _________
abs(num)
Predicates
standard function
remove((item1, item2, item3...), position)
30. Returns next highest integer
ceiling(num)
starts-with(str1, str2)
books/book[1]
.
31. Selects all book elements with a child element "price" with values greater than 35
month-from-date(current-date())
books/book[price > 35.00]
ends-with(str1, str2)
current-date()
32. Predicates work somewhat like _____________
current-date()
arrays and functions
true() and false()
path
33. Sibling nodes all have the same ______
compare(arg1, arg2)
substring(str1, start, len)
parent
'//'
34. Returns hour value from time passed
string-length()
hours-from-time(time)
year-from-date(current-date())
//book[@isbn]
35. Converts value to a string
replace(str1, str2, str3)
true() and false()
'/'
string(arg)
36. xpath function categories: numeric - string - boolea - date/time - ________
insert-before((item1, item2, item3...), positionX, itemX)
string(arg)
sequence
processing-instruction
37. Returns day value from date passed
day-from-date(date)
parent
sequence
replace(str1, str2, str3)
38. Selects attributes
substring-before(str1, str2)
upper-case(str)
@
child nodes
39. Converts string number to numeric value
standard function
number(arg)
substring(str1, start, len)
index-of((item1, item2), item3...), target)
40. Selects all title AND price elements in the entire document
//title | //price
nodes
round(num)
path expressions
41. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
current-date()
replace(str1, str2, str3)
timezone-from-time(time)
insert-before((item1, item2, item3...), positionX, itemX)
42. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
/bookstore/*
boolean(arg)
path expressions
concat(str1, str2, str3...)
43. In str1, replaces all occurrences of str2 with str3
'/'
nodes
replace(str1, str2, str3)
substring-before(str1, str2)
44. Returns length of current node string
path
replace(str1, str2, str3)
string-length()
books/book[position()
45. Selects all elements in the document
parent node
upper-case(str)
//*
number(arg)
46. Selects all title AND price elements of all book elements
books/book[1]
/bookstore/book/title | //price
..
//book/title | //book/price
47. Concatenates strings together with separator between each string
current-date()
timezone-from-time(time)
child nodes
string-join((str1, str2, str3), separator)
48. Selects from the root node
'/'
49. Returns October or 10 ?
insert-before((item1, item2, item3...), positionX, itemX)
'/'
div
month-from-date(current-date())
50. Compares strings, returns 0 if same, -1 if not same
/bookstore/*
concat(str1, str2, str3...)
compare(arg1, arg2)
'//'