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 logically rounded integer
round(num)
not(arg)
floor(num)
instinct-values(item1, item2, item3...))
2. XPath is a for defining parts of an XML document
upper-case(str)
processing-instruction
syntax
child nodes
3. Returns true if str1 contains str2
processing-instruction
contains(str1, str2)
//book/title | //book/price
not(arg)
4. Selects parent of current node
minutes-from-time(time)
XSLT
..
.
5. Returns hour value from time passed
usable document
floor(num)
hours-from-time(time)
boolean(arg)
6. Selects all elements in the document
nodes
@
//*
substring(str,start)
7. Returns absolute value (example abs(-2.5) returns 2.5
substring-after(str1, str2)
abs(num)
current-dateTime()
lower-case(str)
8. Returns October or 10 ?
div
ceiling(num)
//title[@*]
month-from-date(current-date())
9. Selects all title elements which have any attribute
parent node
//title[@*]
div
timezone-from-time(time)
10. Selects current node
.
sequence
current-date()
processing-instruction
11. Returns n-length substring from start position
normalize-space(str)
minutes-from-time(time)
not(arg)
substring(str1, start, len)
12. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
ends-with(str1, str2)
substring(str1, start, len)
insert-before((item1, item2, item3...), positionX, itemX)
sequence
13. Returns month value out of date passed
index-of((item1, item2), item3...), target)
compare(arg1, arg2)
month-from-date(date)
attribute node
14. Selects all title AND price elements in the entire document
usable document
string(arg)
ends-with(str1, str2)
//title | //price
15. Selects all book elements with an attribute isbn=
//book[@isbn]
path expressions
Predicates
nodes
16. XSL is what we use to get from readable to _________
usable document
substring(str1, start, len)
parent
attribute node
17. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
ends-with(str1, str2)
current-dateTime()
current-date()
18. Returns complete date/time
current-dateTime()
.
//title | //price
child nodes
19. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
lower-case(str)
child nodes
sequence
index-of((item1, item2), item3...), target)
20. xpath function categories: numeric - string - boolea - date/time - ________
string(arg)
replace(str1, str2, str3)
books/book[position()
sequence
21. Returns length of passed string
path
string(arg)
trees of nodes
string-length(str)
22. Returns everything after the first occurrence of str2
string-length(str)
substring-after(str1, str2)
processing-instruction
/bookstore/book/title | //price
23. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
string(arg)
lower-case(str)
starts-with(str1, str2)
24. Returns substring from start position to end of string
string-join((str1, str2, str3), separator)
substring(str,start)
round(num)
not(arg)
25. Returns next highest integer
upper-case(str)
..
ceiling(num)
child nodes
26. Returns 2008
usable document
current-time()
year-from-date(current-date())
string(arg)
27. Converts string number to numeric value
..
/bookstore/book/title | //price
upper-case(str)
number(arg)
28. Transformation is actually accomplished by a _____________ like Saxon XSLT
year-from-date(date)
processor application
current-date()
month-from-date(current-date())
29. Returns today's date
transformation
trees of nodes
remove((item1, item2, item3...), position)
current-date()
30. _______ have 3 primary relationships: parent - child - sibling
lower-case(str)
current-date()
instinct-values(item1, item2, item3...))
nodes
31. Compares strings, returns 0 if same, -1 if not same
processing-instruction
XSLT
current-date()
compare(arg1, arg2)
32. Returns next lowest integer
floor(num)
upper-case(str)
'/'
Predicates
33. Selects first two book elements from the children of books element
string-length(str)
books/book[position()
substring(str1, start, len)
processing-instruction
34. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
string-join((str1, str2, str3), separator)
attribute node
abs(num)
lower-case(str)
35. Returns boolean true or boolean false
criteria
true() and false()
insert-before((item1, item2, item3...), positionX, itemX)
XSLT
36. Returns time right now
arrays and functions
books/book[price > 35.00]
current-time()
month-from-date(date)
37. Returns false or true
standard function
sequence
boolean(arg)
..
38. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
//title | //price
//*
remove((item1, item2, item3...), position)
books/book[last()]
39. Trims leading and trailing spaces
normalize-space(str)
books/book[1]
.
arrays and functions
40. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
transformation
translate(str1, str2, str3)
year-from-date(current-date())
41. Selects all title AND price elements of all book elements
upper-case(str)
'//'
//book/title | //book/price
insert-before((item1, item2, item3...), positionX, itemX)
42. 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
month-from-date(current-date())
timezone-from-time(time)
..
criteria
43. XPath contains a library of _________
remove((item1, item2, item3...), position)
standard function
arrays and functions
parent
44. The XPath division operator not "/" cuz "/" is used in path expressions
arrays and functions
timezone-from-time(time)
div
index-of((item1, item2), item3...), target)
45. Returns minute value from time passed
criteria
round(num)
minutes-from-time(time)
substring-after(str1, str2)
46. ________ allow more specific selections within the XPath
Predicates
'/'
parent
boolean(arg)
47. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
Xpath operators
div
instinct-values(item1, item2, item3...))
48. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
matches(str1, str2)
books/book[position()
substring(str1, start, len)
49. Returns timezone value from time passed
current-date()
books/book[price > 35.00]
timezone-from-time(time)
boolean(arg)
50. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
boolean(arg)
books/book[last()]
normalize-space(str)