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. Returns 2008
attribute node
year-from-date(current-date())
floor(num)
lower-case(str)
2. Returns minute value from time passed
index-of((item1, item2), item3...), target)
criteria
minutes-from-time(time)
books/book[position()
3. In str1, replaces all occurrences of str2 with str3
instinct-values(item1, item2, item3...))
standard function
replace(str1, str2, str3)
..
4. Returns today's date
ceiling(num)
books/book[price > 35.00]
current-date()
minutes-from-time(time)
5. Returns everything before the first occurrence of str2
nodes
number(arg)
criteria
substring-before(str1, str2)
6. Transformation is actually accomplished by a _____________ like Saxon XSLT
not(arg)
processor application
string-join((str1, str2, str3), separator)
standard function
7. Returns next lowest integer
abs(num)
string-length()
floor(num)
timezone-from-time(time)
8. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
//title[@*]
starts-with(str1, str2)
boolean(arg)
9. Selects all book elements with an attribute isbn=
/bookstore/book/title | //price
//book[@isbn]
substring(str,start)
boolean(arg)
10. Returns second value from time passed
seconds-from-time(time)
books/book[position()
replace(str1, str2, str3)
matches(str1, str2)
11. Returns true if str2 appears anywhere inside str1
substring-before(str1, str2)
matches(str1, str2)
current-date()
substring(str1, start, len)
12. Returns false if true - true if false (negative logic)
hours-from-time(time)
not(arg)
path expressions
upper-case(str)
13. Selects all book elements with a child element "price" with values greater than 35
replace(str1, str2, str3)
books/book[price > 35.00]
upper-case(str)
Xpath operators
14. Selects first two book elements from the children of books element
arrays and functions
books/book[position()
boolean(arg)
child nodes
15. Returns length of current node string
replace(str1, str2, str3)
Predicates
string-length()
contains(str1, str2)
16. Returns substring from start position to end of string
string(arg)
nodes
substring(str,start)
string-length(str)
17. Selects all title elements which have any attribute
syntax
child nodes
abs(num)
//title[@*]
18. Returns day value from date passed
syntax
day-from-date(date)
year-from-date(date)
lower-case(str)
19. Predicates work somewhat like _____________
parent node
arrays and functions
books/book[position()
instinct-values(item1, item2, item3...))
20. The XPath division operator not "/" cuz "/" is used in path expressions
true() and false()
//title[@*]
parent
div
21. Returns logically rounded integer
round(num)
current-dateTime()
normalize-space(str)
Xpath operators
22. Returns complete date/time
number(arg)
books/book[1]
current-dateTime()
/bookstore/book/title | //price
23. Returns boolean true or boolean false
substring-after(str1, str2)
true() and false()
floor(num)
round(num)
24. The process of taking raw XML - adding XSL - and outputting a document file of some type
string-join((str1, str2, str3), separator)
usable document
transformation
'/'
25. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
processor application
path expressions
nodes
current-dateTime()
26. Selects parent of current node
substring-after(str1, str2)
div
path
..
27. Returns hour value from time passed
abs(num)
processing-instruction
books/book[price > 35.00]
hours-from-time(time)
28. Converts string to upper case
//book[@isbn]
hours-from-time(time)
ends-with(str1, str2)
upper-case(str)
29. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
replace(str1, str2, str3)
hours-from-time(time)
year-from-date(date)
30. Use a | to select more than one _____ (means AND)
year-from-date(current-date())
path
..
abs(num)
31. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
transforming
arrays and functions
sequence
32. XPath contains a library of _________
string-join((str1, str2, str3), separator)
processor application
standard function
ends-with(str1, str2)
33. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
arrays and functions
current-dateTime()
concat(str1, str2, str3...)
string-length()
34. XPath is a for defining parts of an XML document
substring-before(str1, str2)
criteria
string-join((str1, str2, str3), separator)
syntax
35. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
not(arg)
year-from-date(date)
//title[@*]
36. 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
substring-after(str1, str2)
criteria
..
div
37. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
criteria
translate(str1, str2, str3)
attribute node
remove((item1, item2, item3...), position)
38. selects first book element from the children of books element
books/book[1]
remove((item1, item2, item3...), position)
seconds-from-time(time)
translate(str1, str2, str3)
39. Returns next highest integer
boolean(arg)
ceiling(num)
path
string-length()
40. Selects all title AND price elements in the entire document
//title | //price
criteria
attribute node
@
41. Selects from the root node
'/'
42. Converts string number to numeric value
number(arg)
true() and false()
timezone-from-time(time)
sequence
43. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
XSLT
compare(arg1, arg2)
Xpath operators
index-of((item1, item2), item3...), target)
44. every element and every attribute have just one _________
parent node
//title | //price
normalize-space(str)
current-dateTime()
45. Returns n-length substring from start position
standard function
substring(str1, start, len)
path
trees of nodes
46. Returns time right now
books/book[last()]
XSLT
current-time()
string-join((str1, str2, str3), separator)
47. Returns true if str1 ends with str2
seconds-from-time(time)
compare(arg1, arg2)
arrays and functions
ends-with(str1, str2)
48. _______ have 3 primary relationships: parent - child - sibling
div
nodes
current-dateTime()
.
49. Returns timezone value from time passed
parent
lower-case(str)
timezone-from-time(time)
instinct-values(item1, item2, item3...))
50. Selects all elements in the document
remove((item1, item2, item3...), position)
//*
seconds-from-time(time)
standard function