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