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