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 hour value from time passed
substring(str1, start, len)
year-from-date(current-date())
'/'
hours-from-time(time)
2. A predicate is used by is used by adding square brackets [ ] to the end of a path or portion of a path - and adding ________ inside the brackets
substring(str,start)
books/book[position()
concat(str1, str2, str3...)
criteria
3. Returns false if true - true if false (negative logic)
index-of((item1, item2), item3...), target)
path
trees of nodes
not(arg)
4. Selects all elements in the document
arrays and functions
month-from-date(current-date())
upper-case(str)
//*
5. Returns true if str1 starts with str2
string-join((str1, str2, str3), separator)
.
starts-with(str1, str2)
child nodes
6. Returns true if str2 appears anywhere inside str1
floor(num)
matches(str1, str2)
books/book[price > 35.00]
number(arg)
7. Returns day value from date passed
books/book[position()
arrays and functions
usable document
day-from-date(date)
8. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
index-of((item1, item2), item3...), target)
matches(str1, str2)
current-dateTime()
arrays and functions
9. Returns n-length substring from start position
/bookstore/book/title | //price
sequence
substring(str1, start, len)
year-from-date(current-date())
10. Returns boolean true or boolean false
true() and false()
path expressions
transformation
month-from-date(current-date())
11. Selects all title elements which have any attribute
//title[@*]
books/book[last()]
arrays and functions
parent
12. Returns substring from start position to end of string
year-from-date(current-date())
substring(str,start)
//title | //price
replace(str1, str2, str3)
13. Returns true if str1 contains str2
year-from-date(current-date())
transformation
contains(str1, str2)
current-date()
14. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
/bookstore/*
seconds-from-time(time)
matches(str1, str2)
path expressions
15. xpath function categories: numeric - string - boolea - date/time - ________
attribute node
month-from-date(current-date())
current-time()
sequence
16. Returns second value from time passed
seconds-from-time(time)
.
sequence
boolean(arg)
17. Selects from the root node
'/'
18. Returns length of passed string
sequence
ends-with(str1, str2)
string-length(str)
'//'
19. _______ have 3 primary relationships: parent - child - sibling
contains(str1, str2)
ends-with(str1, str2)
@
nodes
20. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
instinct-values(item1, item2, item3...))
usable document
year-from-date(current-date())
21. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
month-from-date(date)
seconds-from-time(time)
contains(str1, str2)
instinct-values(item1, item2, item3...))
22. The XPath division operator not "/" cuz "/" is used in path expressions
current-date()
parent node
floor(num)
div
23. ________ allow more specific selections within the XPath
substring(str1, start, len)
Predicates
ceiling(num)
sequence
24. selects first book element from the children of books element
books/book[position()
day-from-date(date)
books/book[1]
minutes-from-time(time)
25. XPath is a major element in _______
//title | //price
XSLT
compare(arg1, arg2)
number(arg)
26. Returns month value out of date passed
current-dateTime()
criteria
month-from-date(date)
books/book[1]
27. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
string-length()
//*
timezone-from-time(time)
28. XPath contains a library of _________
floor(num)
@
standard function
arrays and functions
29. XSL is what we use to get from readable to _________
usable document
replace(str1, str2, str3)
string-join((str1, str2, str3), separator)
nodes
30. Converts string to lower case
//title | //price
lower-case(str)
syntax
standard function
31. Returns next highest integer
syntax
current-time()
ceiling(num)
lower-case(str)
32. Returns everything before the first occurrence of str2
.
Xpath operators
day-from-date(date)
substring-before(str1, str2)
33. Selects current node
string-length(str)
Predicates
//title | //price
.
34. Returns October or 10 ?
abs(num)
month-from-date(current-date())
year-from-date(current-date())
substring-before(str1, str2)
35. Travels from current node to select nodes that match - wherever they are
36. Converts string to upper case
Xpath operators
books/book[price > 35.00]
books/book[1]
upper-case(str)
37. every element and every attribute have just one _________
books/book[last()]
parent node
'/'
child nodes
38. Returns true if str1 ends with str2
contains(str1, str2)
round(num)
boolean(arg)
ends-with(str1, str2)
39. Selects last book element from the children of books element
books/book[last()]
processing-instruction
syntax
hours-from-time(time)
40. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
instinct-values(item1, item2, item3...))
Predicates
normalize-space(str)
41. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
hours-from-time(time)
not(arg)
arrays and functions
42. Returns year value out of the date passed
year-from-date(date)
year-from-date(current-date())
attribute node
substring-before(str1, str2)
43. Predicates work somewhat like _____________
substring(str1, start, len)
div
arrays and functions
books/book[last()]
44. Element nodes may have zero - one - or more _________
transforming
boolean(arg)
child nodes
current-date()
45. Trims leading and trailing spaces
attribute node
normalize-space(str)
sequence
usable document
46. Sibling nodes all have the same ______
.
parent
seconds-from-time(time)
current-time()
47. Transformation is actually accomplished by a _____________ like Saxon XSLT
insert-before((item1, item2, item3...), positionX, itemX)
div
year-from-date(date)
processor application
48. Returns false or true
boolean(arg)
usable document
upper-case(str)
books/book[price > 35.00]
49. Returns next lowest integer
floor(num)
abs(num)
string-length()
path expressions
50. Selects all title AND price elements of all book elements
transforming
string-length()
//book/title | //book/price
abs(num)