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. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
//title[@*]
compare(arg1, arg2)
books/book[last()]
2. Returns length of current node string
string-length()
/bookstore/*
current-dateTime()
hours-from-time(time)
3. Returns next lowest integer
year-from-date(date)
index-of((item1, item2), item3...), target)
floor(num)
string(arg)
4. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
parent
year-from-date(date)
'//'
5. Returns false or true
boolean(arg)
compare(arg1, arg2)
year-from-date(date)
Xpath operators
6. Returns boolean true or boolean false
true() and false()
abs(num)
month-from-date(date)
books/book[1]
7. Returns year value out of the date passed
year-from-date(date)
books/book[price > 35.00]
path
normalize-space(str)
8. Selects all the child nodes of the bookstore element
translate(str1, str2, str3)
normalize-space(str)
substring(str,start)
/bookstore/*
9. Returns n-length substring from start position
'//'
starts-with(str1, str2)
substring(str1, start, len)
arrays and functions
10. Returns true if str1 contains str2
contains(str1, str2)
books/book[price > 35.00]
seconds-from-time(time)
processor application
11. Selects first two book elements from the children of books element
ceiling(num)
contains(str1, str2)
XSLT
books/book[position()
12. Travels from current node to select nodes that match - wherever they are
13. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
//*
substring(str1, start, len)
parent node
instinct-values(item1, item2, item3...))
14. Selects all title AND price elements in the entire document
/bookstore/book/title | //price
normalize-space(str)
//title | //price
arrays and functions
15. Returns logically rounded integer
round(num)
year-from-date(date)
substring-before(str1, str2)
/bookstore/book/title | //price
16. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
child nodes
day-from-date(date)
index-of((item1, item2), item3...), target)
processor application
17. Returns absolute value (example abs(-2.5) returns 2.5
substring(str1, start, len)
compare(arg1, arg2)
/bookstore/book/title | //price
abs(num)
18. Selects all book elements with an attribute isbn=
//book[@isbn]
books/book[1]
/bookstore/book/title | //price
trees of nodes
19. Concatenates strings together with separator between each string
trees of nodes
string-join((str1, str2, str3), separator)
//book[@isbn]
upper-case(str)
20. Returns month value out of date passed
month-from-date(date)
processor application
compare(arg1, arg2)
Predicates
21. Returns complete date/time
current-time()
replace(str1, str2, str3)
current-dateTime()
substring-after(str1, str2)
22. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
lower-case(str)
boolean(arg)
arrays and functions
23. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
//book/title | //book/price
day-from-date(date)
hours-from-time(time)
processing-instruction
24. Returns true if str1 starts with str2
attribute node
substring(str1, start, len)
starts-with(str1, str2)
translate(str1, str2, str3)
25. Returns second value from time passed
child nodes
seconds-from-time(time)
substring-after(str1, str2)
upper-case(str)
26. Returns true if str1 ends with str2
index-of((item1, item2), item3...), target)
path expressions
ends-with(str1, str2)
number(arg)
27. Returns next highest integer
index-of((item1, item2), item3...), target)
books/book[last()]
nodes
ceiling(num)
28. The process of taking raw XML - adding XSL - and outputting a document file of some type
current-date()
transformation
day-from-date(date)
true() and false()
29. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
seconds-from-time(time)
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
concat(str1, str2, str3...)
30. Selects all title AND price elements of all book elements
child nodes
current-dateTime()
//book/title | //book/price
div
31. Selects current node
.
string-length(str)
//title | //price
syntax
32. _______ have 3 primary relationships: parent - child - sibling
attribute node
not(arg)
nodes
compare(arg1, arg2)
33. Returns time right now
current-time()
substring-before(str1, str2)
Xpath operators
processing-instruction
34. Returns everything after the first occurrence of str2
substring-after(str1, str2)
substring(str,start)
string-join((str1, str2, str3), separator)
floor(num)
35. Trims leading and trailing spaces
current-time()
usable document
normalize-space(str)
syntax
36. Returns false if true - true if false (negative logic)
not(arg)
criteria
processor application
//title[@*]
37. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
Xpath operators
@
attribute node
38. Returns 2008
//book[@isbn]
transforming
transformation
year-from-date(current-date())
39. selects first book element from the children of books element
//*
path
attribute node
books/book[1]
40. ________ allow more specific selections within the XPath
processor application
minutes-from-time(time)
Predicates
true() and false()
41. Returns minute value from time passed
minutes-from-time(time)
'/'
month-from-date(date)
XSLT
42. XPath contains a library of _________
string-length()
arrays and functions
path
standard function
43. Selects parent of current node
Predicates
@
..
current-time()
44. In str1, replaces all occurrences of str2 with str3
current-dateTime()
replace(str1, str2, str3)
string-length(str)
/bookstore/book/title | //price
45. XML documents are treated as _________- so the root of the tree is called the document node or root node
nodes
translate(str1, str2, str3)
trees of nodes
year-from-date(current-date())
46. Returns length of passed string
string(arg)
arrays and functions
remove((item1, item2, item3...), position)
string-length(str)
47. Converts string number to numeric value
year-from-date(current-date())
number(arg)
trees of nodes
compare(arg1, arg2)
48. Converts string to lower case
current-time()
string-join((str1, str2, str3), separator)
//title[@*]
lower-case(str)
49. Converts value to a string
parent node
string(arg)
index-of((item1, item2), item3...), target)
translate(str1, str2, str3)
50. Selects all elements in the document
insert-before((item1, item2, item3...), positionX, itemX)
//*
upper-case(str)
standard function