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
string(arg)
normalize-space(str)
remove((item1, item2, item3...), position)
lower-case(str)
2. Returns minute value from time passed
year-from-date(date)
matches(str1, str2)
'//'
minutes-from-time(time)
3. Returns next highest integer
XSLT
string-length(str)
ceiling(num)
abs(num)
4. Selects first two book elements from the children of books element
books/book[position()
substring(str1, start, len)
string(arg)
transforming
5. Selects all book elements with an attribute isbn=
//book[@isbn]
substring-after(str1, str2)
string(arg)
abs(num)
6. Selects all title AND price elements in the entire document
child nodes
standard function
//title | //price
seconds-from-time(time)
7. Returns everything before the first occurrence of str2
..
matches(str1, str2)
parent
substring-before(str1, str2)
8. XPath is a major element in _______
Xpath operators
XSLT
string-length()
/bookstore/*
9. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
@
matches(str1, str2)
books/book[1]
10. ________ allow more specific selections within the XPath
processor application
div
instinct-values(item1, item2, item3...))
Predicates
11. Returns length of current node string
//title[@*]
/bookstore/book/title | //price
ends-with(str1, str2)
string-length()
12. Returns second value from time passed
path
seconds-from-time(time)
'//'
ceiling(num)
13. Returns day value from date passed
month-from-date(current-date())
month-from-date(date)
day-from-date(date)
processor application
14. Returns true if str1 starts with str2
seconds-from-time(time)
lower-case(str)
starts-with(str1, str2)
/bookstore/*
15. Selects from the root node
'/'
16. Returns true if str1 contains str2
contains(str1, str2)
not(arg)
string-join((str1, str2, str3), separator)
@
17. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
transforming
books/book[last()]
remove((item1, item2, item3...), position)
18. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
Predicates
transformation
insert-before((item1, item2, item3...), positionX, itemX)
19. Converts string to upper case
year-from-date(date)
string(arg)
timezone-from-time(time)
upper-case(str)
20. Transformation is actually accomplished by a _____________ like Saxon XSLT
transforming
sequence
path
processor application
21. Selects attributes
compare(arg1, arg2)
not(arg)
@
current-dateTime()
22. Returns false or true
floor(num)
boolean(arg)
string-join((str1, str2, str3), separator)
abs(num)
23. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
//book[@isbn]
//book/title | //book/price
processing-instruction
books/book[1]
24. Returns hour value from time passed
upper-case(str)
hours-from-time(time)
'/'
concat(str1, str2, str3...)
25. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
replace(str1, str2, str3)
number(arg)
insert-before((item1, item2, item3...), positionX, itemX)
not(arg)
26. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
ceiling(num)
books/book[1]
year-from-date(date)
27. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
normalize-space(str)
Xpath operators
boolean(arg)
attribute node
28. Returns true if str1 ends with str2
concat(str1, str2, str3...)
books/book[price > 35.00]
//book[@isbn]
ends-with(str1, str2)
29. The XPath division operator not "/" cuz "/" is used in path expressions
'/'
number(arg)
floor(num)
div
30. Returns substring from start position to end of string
contains(str1, str2)
div
substring(str,start)
books/book[price > 35.00]
31. selects first book element from the children of books element
usable document
floor(num)
books/book[1]
contains(str1, str2)
32. Selects parent of current node
substring-after(str1, str2)
hours-from-time(time)
standard function
..
33. Returns month value out of date passed
boolean(arg)
month-from-date(date)
sequence
books/book[position()
34. XPath is a for defining parts of an XML document
string-join((str1, str2, str3), separator)
parent node
syntax
books/book[price > 35.00]
35. xpath function categories: numeric - string - boolea - date/time - ________
substring(str1, start, len)
lower-case(str)
sequence
contains(str1, str2)
36. Selects last book element from the children of books element
Predicates
'//'
books/book[last()]
'/'
37. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
//title | //price
current-dateTime()
replace(str1, str2, str3)
concat(str1, str2, str3...)
38. Converts value to a string
books/book[position()
attribute node
string(arg)
@
39. 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
child nodes
normalize-space(str)
criteria
insert-before((item1, item2, item3...), positionX, itemX)
40. Returns true if str2 appears anywhere inside str1
//book/title | //book/price
parent node
matches(str1, str2)
not(arg)
41. _______ have 3 primary relationships: parent - child - sibling
..
nodes
books/book[price > 35.00]
ends-with(str1, str2)
42. XPath contains a library of _________
instinct-values(item1, item2, item3...))
div
arrays and functions
standard function
43. Element nodes may have zero - one - or more _________
string-length(str)
compare(arg1, arg2)
child nodes
month-from-date(current-date())
44. Returns false if true - true if false (negative logic)
replace(str1, str2, str3)
books/book[price > 35.00]
concat(str1, str2, str3...)
not(arg)
45. Selects all title AND price elements of all book elements
nodes
translate(str1, str2, str3)
//book/title | //book/price
processing-instruction
46. Returns today's date
substring(str,start)
year-from-date(current-date())
books/book[last()]
current-date()
47. Returns absolute value (example abs(-2.5) returns 2.5
current-dateTime()
abs(num)
attribute node
Predicates
48. Returns everything after the first occurrence of str2
arrays and functions
substring-after(str1, str2)
XSLT
//title | //price
49. Converts string number to numeric value
attribute node
substring(str,start)
usable document
number(arg)
50. every element and every attribute have just one _________
upper-case(str)
parent node
XSLT
//book/title | //book/price