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
hours-from-time(time)
Predicates
//*
current-dateTime()
2. Selects all title AND price elements in the entire document
day-from-date(date)
//title | //price
not(arg)
Predicates
3. Returns timezone value from time passed
timezone-from-time(time)
substring(str1, start, len)
hours-from-time(time)
current-date()
4. Converts value to a string
string(arg)
month-from-date(current-date())
@
substring(str1, start, len)
5. Returns everything after the first occurrence of str2
string-join((str1, str2, str3), separator)
boolean(arg)
substring-after(str1, str2)
starts-with(str1, str2)
6. Returns 2008
year-from-date(current-date())
substring(str1, start, len)
index-of((item1, item2), item3...), target)
contains(str1, str2)
7. Selects all book elements with an attribute isbn=
XSLT
substring-after(str1, str2)
//book[@isbn]
upper-case(str)
8. Returns logically rounded integer
Xpath operators
syntax
round(num)
books/book[last()]
9. Trims leading and trailing spaces
transforming
timezone-from-time(time)
XSLT
normalize-space(str)
10. Predicates work somewhat like _____________
arrays and functions
minutes-from-time(time)
current-dateTime()
parent node
11. The process of taking raw XML - adding XSL - and outputting a document file of some type
Xpath operators
'/'
transformation
not(arg)
12. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
month-from-date(current-date())
processing-instruction
//title | //price
insert-before((item1, item2, item3...), positionX, itemX)
13. Returns everything before the first occurrence of str2
boolean(arg)
matches(str1, str2)
substring-before(str1, str2)
current-dateTime()
14. Selects current node
//title | //price
remove((item1, item2, item3...), position)
current-dateTime()
.
15. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
parent node
child nodes
round(num)
16. Selects all elements in the document
//title[@*]
//*
current-dateTime()
criteria
17. In str1, replaces all occurrences of str2 with str3
year-from-date(date)
round(num)
attribute node
replace(str1, str2, str3)
18. Converts string number to numeric value
contains(str1, str2)
number(arg)
arrays and functions
parent node
19. The XPath division operator not "/" cuz "/" is used in path expressions
/bookstore/book/title | //price
standard function
div
current-date()
20. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
ceiling(num)
true() and false()
processor application
21. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
minutes-from-time(time)
month-from-date(current-date())
upper-case(str)
22. 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
hours-from-time(time)
parent
criteria
upper-case(str)
23. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
processor application
processing-instruction
Xpath operators
remove((item1, item2, item3...), position)
24. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
concat(str1, str2, str3...)
'//'
parent node
25. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
current-time()
Predicates
attribute node
.
26. Returns true if str1 contains str2
usable document
year-from-date(date)
transforming
contains(str1, str2)
27. Returns n-length substring from start position
nodes
substring(str1, start, len)
year-from-date(current-date())
..
28. Selects all the child nodes of the bookstore element
/bookstore/*
/bookstore/book/title | //price
substring-before(str1, str2)
normalize-space(str)
29. Returns true if str1 starts with str2
substring-before(str1, str2)
current-dateTime()
starts-with(str1, str2)
nodes
30. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
translate(str1, str2, str3)
transforming
transformation
path expressions
31. Selects parent of current node
year-from-date(current-date())
starts-with(str1, str2)
child nodes
..
32. Selects last book element from the children of books element
books/book[last()]
current-time()
true() and false()
substring-before(str1, str2)
33. Concatenates strings together with separator between each string
'//'
string-join((str1, str2, str3), separator)
substring(str1, start, len)
//title | //price
34. Returns next lowest integer
'/'
boolean(arg)
floor(num)
//title[@*]
35. Travels from current node to select nodes that match - wherever they are
36. Returns year value out of the date passed
year-from-date(date)
transforming
substring(str,start)
round(num)
37. Returns October or 10 ?
hours-from-time(time)
//title | //price
month-from-date(current-date())
path expressions
38. selects first book element from the children of books element
books/book[1]
abs(num)
month-from-date(date)
criteria
39. Returns boolean true or boolean false
books/book[1]
ends-with(str1, str2)
true() and false()
processor application
40. Replaces chars of str2 found in str1 with chars of str3
//title | //price
processing-instruction
translate(str1, str2, str3)
transformation
41. Returns hour value from time passed
/bookstore/book/title | //price
transformation
Xpath operators
hours-from-time(time)
42. Returns length of current node string
books/book[position()
attribute node
minutes-from-time(time)
string-length()
43. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
path expressions
normalize-space(str)
abs(num)
44. Returns day value from date passed
path
replace(str1, str2, str3)
Xpath operators
day-from-date(date)
45. _______ have 3 primary relationships: parent - child - sibling
syntax
translate(str1, str2, str3)
nodes
trees of nodes
46. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
Predicates
lower-case(str)
minutes-from-time(time)
instinct-values(item1, item2, item3...))
47. Converts string to upper case
month-from-date(current-date())
upper-case(str)
true() and false()
'//'
48. Returns false if true - true if false (negative logic)
..
compare(arg1, arg2)
contains(str1, str2)
not(arg)
49. Selects attributes
div
@
parent
ends-with(str1, str2)
50. Returns today's date
substring(str,start)
@
current-date()
books/book[position()