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