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. Travels from current node to select nodes that match - wherever they are
2. Selects all title elements which have any attribute
upper-case(str)
//title[@*]
current-dateTime()
path
3. 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)
ceiling(num)
//title | //price
string-join((str1, str2, str3), separator)
4. Returns everything before the first occurrence of str2
timezone-from-time(time)
substring-before(str1, str2)
floor(num)
books/book[1]
5. _______ have 3 primary relationships: parent - child - sibling
insert-before((item1, item2, item3...), positionX, itemX)
nodes
ends-with(str1, str2)
transformation
6. The XPath division operator not "/" cuz "/" is used in path expressions
concat(str1, str2, str3...)
div
'/'
substring(str,start)
7. XPath contains a library of _________
usable document
//*
sequence
standard function
8. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
current-date()
month-from-date(current-date())
books/book[price > 35.00]
9. Returns 2008
attribute node
year-from-date(date)
year-from-date(current-date())
/bookstore/book/title | //price
10. In str1, replaces all occurrences of str2 with str3
month-from-date(current-date())
transforming
replace(str1, str2, str3)
..
11. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
usable document
concat(str1, str2, str3...)
timezone-from-time(time)
current-dateTime()
12. Selects all the child nodes of the bookstore element
index-of((item1, item2), item3...), target)
normalize-space(str)
/bookstore/*
standard function
13. Selects all book elements with an attribute isbn=
arrays and functions
//book[@isbn]
index-of((item1, item2), item3...), target)
minutes-from-time(time)
14. xpath function categories: numeric - string - boolea - date/time - ________
transformation
books/book[price > 35.00]
number(arg)
sequence
15. Predicates work somewhat like _____________
arrays and functions
.
day-from-date(date)
current-dateTime()
16. Returns today's date
'/'
current-date()
Predicates
//title[@*]
17. Element nodes may have zero - one - or more _________
..
standard function
child nodes
current-date()
18. Returns time right now
current-time()
ends-with(str1, str2)
lower-case(str)
parent
19. Returns boolean true or boolean false
contains(str1, str2)
remove((item1, item2, item3...), position)
true() and false()
current-date()
20. Transformation is actually accomplished by a _____________ like Saxon XSLT
transforming
processor application
lower-case(str)
parent node
21. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
insert-before((item1, item2, item3...), positionX, itemX)
arrays and functions
processor application
parent
22. Converts string to lower case
XSLT
lower-case(str)
concat(str1, str2, str3...)
syntax
23. Returns minute value from time passed
minutes-from-time(time)
@
child nodes
floor(num)
24. Converts string to upper case
books/book[1]
Xpath operators
upper-case(str)
month-from-date(current-date())
25. Returns false if true - true if false (negative logic)
year-from-date(date)
not(arg)
floor(num)
transformation
26. Selects last book element from the children of books element
parent
insert-before((item1, item2, item3...), positionX, itemX)
month-from-date(current-date())
books/book[last()]
27. The process of taking raw XML - adding XSL - and outputting a document file of some type
floor(num)
//*
transformation
remove((item1, item2, item3...), position)
28. selects first book element from the children of books element
transformation
books/book[1]
compare(arg1, arg2)
books/book[last()]
29. Returns n-length substring from start position
index-of((item1, item2), item3...), target)
normalize-space(str)
substring(str1, start, len)
syntax
30. Returns true if str1 starts with str2
string-length(str)
substring(str1, start, len)
starts-with(str1, str2)
matches(str1, str2)
31. Returns logically rounded integer
abs(num)
starts-with(str1, str2)
number(arg)
round(num)
32. Returns substring from start position to end of string
lower-case(str)
substring(str,start)
round(num)
books/book[1]
33. Returns timezone value from time passed
transforming
timezone-from-time(time)
minutes-from-time(time)
substring(str,start)
34. Returns length of current node string
minutes-from-time(time)
string-length()
@
abs(num)
35. Returns false or true
index-of((item1, item2), item3...), target)
boolean(arg)
//title | //price
insert-before((item1, item2, item3...), positionX, itemX)
36. Returns length of passed string
replace(str1, str2, str3)
minutes-from-time(time)
current-time()
string-length(str)
37. Returns month value out of date passed
year-from-date(date)
month-from-date(date)
remove((item1, item2, item3...), position)
//book/title | //book/price
38. XPath is a major element in _______
upper-case(str)
XSLT
contains(str1, str2)
path
39. Returns second value from time passed
/bookstore/*
seconds-from-time(time)
lower-case(str)
compare(arg1, arg2)
40. Returns absolute value (example abs(-2.5) returns 2.5
string(arg)
abs(num)
hours-from-time(time)
transformation
41. Use a | to select more than one _____ (means AND)
path
minutes-from-time(time)
month-from-date(current-date())
string-length(str)
42. Returns complete date/time
true() and false()
abs(num)
current-dateTime()
normalize-space(str)
43. Returns everything after the first occurrence of str2
transforming
substring(str1, start, len)
substring-after(str1, str2)
//title[@*]
44. Returns next highest integer
//title[@*]
ceiling(num)
substring(str,start)
parent
45. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
instinct-values(item1, item2, item3...))
/bookstore/*
abs(num)
normalize-space(str)
46. Selects all elements in the document
//*
parent node
translate(str1, str2, str3)
//book[@isbn]
47. Returns day value from date passed
day-from-date(date)
year-from-date(current-date())
Predicates
string-length()
48. Converts string number to numeric value
ends-with(str1, str2)
number(arg)
child nodes
usable document
49. Returns hour value from time passed
current-time()
ceiling(num)
/bookstore/*
hours-from-time(time)
50. Returns true if str1 ends with str2
remove((item1, item2, item3...), position)
parent node
ends-with(str1, str2)
translate(str1, str2, str3)