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