SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 year value out of the date passed
Predicates
round(num)
year-from-date(date)
@
2. Returns next highest integer
ceiling(num)
transformation
criteria
seconds-from-time(time)
3. Returns false or true
boolean(arg)
books/book[position()
floor(num)
instinct-values(item1, item2, item3...))
4. Returns month value out of date passed
.
books/book[1]
compare(arg1, arg2)
month-from-date(date)
5. xpath function categories: numeric - string - boolea - date/time - ________
books/book[price > 35.00]
sequence
path
path expressions
6. Selects all book elements with an attribute isbn=
round(num)
'//'
//book[@isbn]
instinct-values(item1, item2, item3...))
7. every element and every attribute have just one _________
hours-from-time(time)
parent node
transforming
syntax
8. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
insert-before((item1, item2, item3...), positionX, itemX)
remove((item1, item2, item3...), position)
usable document
boolean(arg)
9. Selects all title elements of the book element AND all price elements in the entire document
substring-after(str1, str2)
/bookstore/book/title | //price
parent node
'//'
10. XPath contains a library of _________
standard function
instinct-values(item1, item2, item3...))
@
string-length()
11. Selects first two book elements from the children of books element
string(arg)
instinct-values(item1, item2, item3...))
books/book[position()
year-from-date(date)
12. Returns length of current node string
string-length()
ceiling(num)
seconds-from-time(time)
not(arg)
13. Returns length of passed string
string-length(str)
replace(str1, str2, str3)
boolean(arg)
normalize-space(str)
14. Transformation is actually accomplished by a _____________ like Saxon XSLT
substring(str,start)
day-from-date(date)
XSLT
processor application
15. Returns everything after the first occurrence of str2
lower-case(str)
substring-after(str1, str2)
Xpath operators
starts-with(str1, str2)
16. Returns true if str1 starts with str2
/bookstore/*
processing-instruction
starts-with(str1, str2)
year-from-date(date)
17. Sibling nodes all have the same ______
attribute node
parent
substring-after(str1, str2)
'//'
18. Returns boolean true or boolean false
normalize-space(str)
true() and false()
path
//title | //price
19. Returns 2008
year-from-date(current-date())
Predicates
usable document
arrays and functions
20. Returns substring from start position to end of string
arrays and functions
transformation
substring(str,start)
replace(str1, str2, str3)
21. Travels from current node to select nodes that match - wherever they are
22. Returns today's date
matches(str1, str2)
parent node
current-date()
lower-case(str)
23. Returns false if true - true if false (negative logic)
syntax
not(arg)
attribute node
'/'
24. Trims leading and trailing spaces
normalize-space(str)
books/book[price > 35.00]
substring(str1, start, len)
//book[@isbn]
25. Returns true if str2 appears anywhere inside str1
substring-after(str1, str2)
parent
instinct-values(item1, item2, item3...))
matches(str1, str2)
26. _______ have 3 primary relationships: parent - child - sibling
boolean(arg)
nodes
minutes-from-time(time)
number(arg)
27. Replaces chars of str2 found in str1 with chars of str3
true() and false()
standard function
books/book[position()
translate(str1, str2, str3)
28. XSL is what we use to get from readable to _________
remove((item1, item2, item3...), position)
usable document
matches(str1, str2)
'//'
29. 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
criteria
concat(str1, str2, str3...)
starts-with(str1, str2)
translate(str1, str2, str3)
30. Returns timezone value from time passed
processing-instruction
timezone-from-time(time)
current-date()
string-join((str1, str2, str3), separator)
31. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
substring(str1, start, len)
insert-before((item1, item2, item3...), positionX, itemX)
string-join((str1, str2, str3), separator)
substring(str,start)
32. Returns logically rounded integer
round(num)
trees of nodes
year-from-date(current-date())
path
33. Predicates work somewhat like _____________
arrays and functions
nodes
criteria
concat(str1, str2, str3...)
34. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processor application
processing-instruction
replace(str1, str2, str3)
string(arg)
35. Returns true if str1 contains str2
contains(str1, str2)
processing-instruction
Predicates
number(arg)
36. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
//book/title | //book/price
day-from-date(date)
path
concat(str1, str2, str3...)
37. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
nodes
.
number(arg)
38. Selects all the child nodes of the bookstore element
lower-case(str)
/bookstore/*
standard function
parent
39. Selects current node
year-from-date(current-date())
books/book[price > 35.00]
.
timezone-from-time(time)
40. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
timezone-from-time(time)
translate(str1, str2, str3)
number(arg)
attribute node
41. Element nodes may have zero - one - or more _________
usable document
child nodes
floor(num)
attribute node
42. Selects all title elements which have any attribute
//title[@*]
ends-with(str1, str2)
not(arg)
'/'
43. selects first book element from the children of books element
books/book[1]
translate(str1, str2, str3)
substring-after(str1, str2)
day-from-date(date)
44. Selects last book element from the children of books element
current-date()
books/book[last()]
path
substring-before(str1, str2)
45. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
string-length()
floor(num)
XSLT
instinct-values(item1, item2, item3...))
46. The XPath division operator not "/" cuz "/" is used in path expressions
Xpath operators
number(arg)
trees of nodes
div
47. XPath is a major element in _______
day-from-date(date)
boolean(arg)
abs(num)
XSLT
48. Selects all elements in the document
seconds-from-time(time)
timezone-from-time(time)
//*
books/book[position()
49. Selects from the root node
'/'
50. Returns complete date/time
seconds-from-time(time)
div
current-dateTime()
contains(str1, str2)