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