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