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 boolean true or boolean false
matches(str1, str2)
true() and false()
starts-with(str1, str2)
substring(str,start)
2. Selects all title AND price elements in the entire document
standard function
//title | //price
number(arg)
month-from-date(current-date())
3. Returns complete date/time
parent
string-length(str)
current-dateTime()
syntax
4. Predicates work somewhat like _____________
arrays and functions
Xpath operators
string-length(str)
path expressions
5. Returns today's date
current-date()
ends-with(str1, str2)
month-from-date(current-date())
sequence
6. Element nodes may have zero - one - or more _________
/bookstore/book/title | //price
child nodes
..
number(arg)
7. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
usable document
abs(num)
books/book[last()]
8. Returns month value out of date passed
concat(str1, str2, str3...)
month-from-date(current-date())
not(arg)
month-from-date(date)
9. Returns true if str1 contains str2
contains(str1, str2)
current-time()
not(arg)
//title | //price
10. Returns absolute value (example abs(-2.5) returns 2.5
substring-after(str1, str2)
processor application
abs(num)
month-from-date(date)
11. Trims leading and trailing spaces
normalize-space(str)
substring-after(str1, str2)
insert-before((item1, item2, item3...), positionX, itemX)
matches(str1, str2)
12. Selects from the root node
'/'
13. The process of taking raw XML - adding XSL - and outputting a document file of some type
standard function
transformation
month-from-date(date)
processor application
14. Selects all book elements with a child element "price" with values greater than 35
transformation
criteria
'//'
books/book[price > 35.00]
15. every element and every attribute have just one _________
trees of nodes
concat(str1, str2, str3...)
parent node
@
16. Returns day value from date passed
month-from-date(current-date())
ceiling(num)
abs(num)
day-from-date(date)
17. Returns logically rounded integer
boolean(arg)
Predicates
round(num)
current-time()
18. Selects all title elements of the book element AND all price elements in the entire document
books/book[1]
transforming
syntax
/bookstore/book/title | //price
19. Returns timezone value from time passed
timezone-from-time(time)
processing-instruction
books/book[price > 35.00]
upper-case(str)
20. Converts string to upper case
XSLT
div
upper-case(str)
year-from-date(current-date())
21. Concatenates strings together with separator between each string
upper-case(str)
string-join((str1, str2, str3), separator)
remove((item1, item2, item3...), position)
day-from-date(date)
22. Returns time right now
current-time()
processor application
books/book[last()]
substring(str,start)
23. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
nodes
XSLT
processing-instruction
matches(str1, str2)
24. Returns true if str1 ends with str2
substring-before(str1, str2)
child nodes
contains(str1, str2)
ends-with(str1, str2)
25. Selects all the child nodes of the bookstore element
/bookstore/*
true() and false()
minutes-from-time(time)
current-time()
26. Selects last book element from the children of books element
current-time()
books/book[position()
//title | //price
books/book[last()]
27. Returns 2008
year-from-date(current-date())
attribute node
day-from-date(date)
//title[@*]
28. Returns everything after the first occurrence of str2
hours-from-time(time)
substring-after(str1, str2)
month-from-date(date)
syntax
29. XPath contains a library of _________
month-from-date(current-date())
month-from-date(date)
parent
standard function
30. Use a | to select more than one _____ (means AND)
lower-case(str)
path
div
//book/title | //book/price
31. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
year-from-date(current-date())
transforming
/bookstore/*
insert-before((item1, item2, item3...), positionX, itemX)
32. XSL is what we use to get from readable to _________
matches(str1, str2)
usable document
string-join((str1, str2, str3), separator)
div
33. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
insert-before((item1, item2, item3...), positionX, itemX)
instinct-values(item1, item2, item3...))
//book/title | //book/price
.
34. Returns length of current node string
nodes
processor application
substring-after(str1, str2)
string-length()
35. Returns false or true
instinct-values(item1, item2, item3...))
hours-from-time(time)
lower-case(str)
boolean(arg)
36. Selects all title elements which have any attribute
upper-case(str)
..
//title[@*]
/bookstore/*
37. Returns hour value from time passed
hours-from-time(time)
div
//title | //price
books/book[last()]
38. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
index-of((item1, item2), item3...), target)
lower-case(str)
current-date()
path expressions
39. Selects all elements in the document
//*
hours-from-time(time)
floor(num)
month-from-date(date)
40. Transformation is actually accomplished by a _____________ like Saxon XSLT
instinct-values(item1, item2, item3...))
processor application
month-from-date(current-date())
standard function
41. XPath is a major element in _______
upper-case(str)
XSLT
'//'
criteria
42. In str1, replaces all occurrences of str2 with str3
attribute node
processing-instruction
month-from-date(date)
replace(str1, str2, str3)
43. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
standard function
index-of((item1, item2), item3...), target)
translate(str1, str2, str3)
Predicates
44. Returns October or 10 ?
month-from-date(current-date())
div
path
trees of nodes
45. Returns year value out of the date passed
trees of nodes
hours-from-time(time)
year-from-date(date)
string-length(str)
46. Returns next lowest integer
year-from-date(date)
translate(str1, str2, str3)
floor(num)
month-from-date(current-date())
47. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
round(num)
concat(str1, str2, str3...)
syntax
abs(num)
48. Returns substring from start position to end of string
substring(str,start)
hours-from-time(time)
month-from-date(current-date())
parent node
49. Returns true if str1 starts with str2
starts-with(str1, str2)
substring(str1, start, len)
substring-after(str1, str2)
parent node
50. Converts value to a string
string(arg)
day-from-date(date)
string-length(str)
substring(str,start)