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. Concatenates strings together with separator between each string
index-of((item1, item2), item3...), target)
transforming
day-from-date(date)
string-join((str1, str2, str3), separator)
2. Selects all title AND price elements in the entire document
standard function
//title | //price
string(arg)
/bookstore/book/title | //price
3. Returns next lowest integer
books/book[position()
floor(num)
attribute node
abs(num)
4. Selects all book elements with an attribute isbn=
path
year-from-date(date)
//book[@isbn]
books/book[price > 35.00]
5. Selects all book elements with a child element "price" with values greater than 35
//book[@isbn]
ends-with(str1, str2)
normalize-space(str)
books/book[price > 35.00]
6. _______ have 3 primary relationships: parent - child - sibling
boolean(arg)
starts-with(str1, str2)
nodes
floor(num)
7. Selects all title elements which have any attribute
//title | //price
books/book[price > 35.00]
ceiling(num)
//title[@*]
8. Compares strings, returns 0 if same, -1 if not same
year-from-date(current-date())
compare(arg1, arg2)
transforming
books/book[price > 35.00]
9. every element and every attribute have just one _________
transforming
parent node
books/book[position()
//*
10. Returns logically rounded integer
usable document
round(num)
insert-before((item1, item2, item3...), positionX, itemX)
transformation
11. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
'/'
criteria
remove((item1, item2, item3...), position)
upper-case(str)
12. XPath is a for defining parts of an XML document
syntax
round(num)
processor application
matches(str1, str2)
13. Selects current node
round(num)
arrays and functions
true() and false()
.
14. Returns October or 10 ?
timezone-from-time(time)
parent node
month-from-date(current-date())
upper-case(str)
15. Selects last book element from the children of books element
//book[@isbn]
processor application
books/book[last()]
attribute node
16. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
..
//*
attribute node
//book/title | //book/price
17. Returns length of passed string
string-length(str)
standard function
attribute node
//title | //price
18. Returns true if str2 appears anywhere inside str1
@
trees of nodes
matches(str1, str2)
substring(str1, start, len)
19. Selects from the root node
'/'
20. Returns day value from date passed
day-from-date(date)
arrays and functions
string-join((str1, str2, str3), separator)
remove((item1, item2, item3...), position)
21. Returns false if true - true if false (negative logic)
string-length()
criteria
not(arg)
day-from-date(date)
22. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
books/book[price > 35.00]
current-time()
transformation
concat(str1, str2, str3...)
23. Selects all title AND price elements of all book elements
translate(str1, str2, str3)
attribute node
parent
//book/title | //book/price
24. Returns n-length substring from start position
month-from-date(current-date())
//book/title | //book/price
substring(str1, start, len)
usable document
25. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
transformation
processor application
trees of nodes
26. Returns substring from start position to end of string
books/book[last()]
matches(str1, str2)
substring(str,start)
parent node
27. Returns complete date/time
XSLT
year-from-date(date)
string(arg)
current-dateTime()
28. ________ allow more specific selections within the XPath
syntax
starts-with(str1, str2)
Predicates
month-from-date(date)
29. Returns true if str1 contains str2
minutes-from-time(time)
floor(num)
contains(str1, str2)
processing-instruction
30. Returns everything before the first occurrence of str2
XSLT
substring-before(str1, str2)
floor(num)
contains(str1, str2)
31. Converts string to lower case
Predicates
lower-case(str)
string-length(str)
minutes-from-time(time)
32. Selects all the child nodes of the bookstore element
attribute node
seconds-from-time(time)
/bookstore/*
@
33. Element nodes may have zero - one - or more _________
child nodes
processing-instruction
//book[@isbn]
'/'
34. Predicates work somewhat like _____________
day-from-date(date)
arrays and functions
/bookstore/*
books/book[1]
35. Returns 2008
transforming
minutes-from-time(time)
remove((item1, item2, item3...), position)
year-from-date(current-date())
36. selects first book element from the children of books element
books/book[1]
substring-after(str1, str2)
number(arg)
instinct-values(item1, item2, item3...))
37. Transformation is actually accomplished by a _____________ like Saxon XSLT
XSLT
not(arg)
books/book[last()]
processor application
38. xpath function categories: numeric - string - boolea - date/time - ________
sequence
minutes-from-time(time)
insert-before((item1, item2, item3...), positionX, itemX)
.
39. Selects all elements in the document
insert-before((item1, item2, item3...), positionX, itemX)
//*
boolean(arg)
arrays and functions
40. Returns length of current node string
true() and false()
sequence
books/book[price > 35.00]
string-length()
41. Selects parent of current node
remove((item1, item2, item3...), position)
books/book[position()
transformation
..
42. The XPath division operator not "/" cuz "/" is used in path expressions
year-from-date(current-date())
div
matches(str1, str2)
usable document
43. Sibling nodes all have the same ______
standard function
string-length()
parent
syntax
44. In str1, replaces all occurrences of str2 with str3
day-from-date(date)
replace(str1, str2, str3)
year-from-date(date)
//*
45. Converts value to a string
child nodes
current-dateTime()
string(arg)
/bookstore/book/title | //price
46. XSL is what we use to get from readable to _________
index-of((item1, item2), item3...), target)
usable document
nodes
path expressions
47. Returns second value from time passed
trees of nodes
instinct-values(item1, item2, item3...))
seconds-from-time(time)
processing-instruction
48. Trims leading and trailing spaces
substring-before(str1, str2)
//book/title | //book/price
round(num)
normalize-space(str)
49. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
string(arg)
//title | //price
normalize-space(str)
processing-instruction
50. Replaces chars of str2 found in str1 with chars of str3
//title | //price
translate(str1, str2, str3)
substring(str,start)
index-of((item1, item2), item3...), target)