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. _______ have 3 primary relationships: parent - child - sibling
nodes
not(arg)
criteria
syntax
2. Returns next highest integer
processing-instruction
books/book[position()
ceiling(num)
@
3. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
Predicates
day-from-date(date)
criteria
4. Returns false if true - true if false (negative logic)
not(arg)
usable document
floor(num)
current-date()
5. Returns length of passed string
lower-case(str)
string-length(str)
string-length()
books/book[price > 35.00]
6. Returns second value from time passed
seconds-from-time(time)
Xpath operators
/bookstore/book/title | //price
month-from-date(current-date())
7. Returns length of current node string
remove((item1, item2, item3...), position)
string-length()
books/book[price > 35.00]
path
8. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
contains(str1, str2)
/bookstore/*
nodes
9. Selects all title elements which have any attribute
current-time()
'//'
Predicates
//title[@*]
10. Returns n-length substring from start position
month-from-date(current-date())
floor(num)
substring(str1, start, len)
not(arg)
11. Returns 2008
ends-with(str1, str2)
year-from-date(current-date())
current-time()
string-join((str1, str2, str3), separator)
12. Predicates work somewhat like _____________
.
arrays and functions
string-length()
index-of((item1, item2), item3...), target)
13. XPath is a for defining parts of an XML document
books/book[price > 35.00]
syntax
true() and false()
number(arg)
14. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
books/book[last()]
concat(str1, str2, str3...)
@
remove((item1, item2, item3...), position)
15. Returns complete date/time
not(arg)
compare(arg1, arg2)
criteria
current-dateTime()
16. Converts string to upper case
year-from-date(current-date())
..
upper-case(str)
books/book[last()]
17. Selects parent of current node
instinct-values(item1, item2, item3...))
//book/title | //book/price
contains(str1, str2)
..
18. Returns day value from date passed
day-from-date(date)
nodes
books/book[price > 35.00]
substring-before(str1, str2)
19. Returns hour value from time passed
hours-from-time(time)
string-length(str)
not(arg)
compare(arg1, arg2)
20. 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
normalize-space(str)
floor(num)
substring(str,start)
criteria
21. The process of taking raw XML - adding XSL - and outputting a document file of some type
day-from-date(date)
transformation
.
books/book[last()]
22. Selects from the root node
'/'
23. XPath is a major element in _______
contains(str1, str2)
abs(num)
XSLT
//*
24. Trims leading and trailing spaces
path
books/book[1]
hours-from-time(time)
normalize-space(str)
25. Converts string number to numeric value
books/book[price > 35.00]
number(arg)
current-dateTime()
current-time()
26. Returns next lowest integer
month-from-date(current-date())
floor(num)
abs(num)
books/book[last()]
27. Selects current node
.
floor(num)
path expressions
insert-before((item1, item2, item3...), positionX, itemX)
28. Selects all title AND price elements of all book elements
//book/title | //book/price
@
floor(num)
translate(str1, str2, str3)
29. Sibling nodes all have the same ______
insert-before((item1, item2, item3...), positionX, itemX)
matches(str1, str2)
parent
string(arg)
30. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
not(arg)
attribute node
Predicates
string-length(str)
31. Selects all book elements with a child element "price" with values greater than 35
month-from-date(date)
replace(str1, str2, str3)
books/book[price > 35.00]
substring(str1, start, len)
32. Selects all title elements of the book element AND all price elements in the entire document
'//'
Predicates
/bookstore/book/title | //price
replace(str1, str2, str3)
33. Returns true if str1 starts with str2
starts-with(str1, str2)
child nodes
seconds-from-time(time)
substring(str,start)
34. Returns everything before the first occurrence of str2
/bookstore/*
sequence
substring-before(str1, str2)
current-date()
35. Returns month value out of date passed
month-from-date(date)
starts-with(str1, str2)
replace(str1, str2, str3)
string(arg)
36. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
contains(str1, str2)
//title | //price
index-of((item1, item2), item3...), target)
.
37. Travels from current node to select nodes that match - wherever they are
38. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
processor application
insert-before((item1, item2, item3...), positionX, itemX)
not(arg)
current-dateTime()
39. Converts string to lower case
lower-case(str)
month-from-date(current-date())
index-of((item1, item2), item3...), target)
substring(str,start)
40. Returns true if str1 contains str2
abs(num)
standard function
books/book[last()]
contains(str1, str2)
41. Selects attributes
@
processor application
criteria
replace(str1, str2, str3)
42. XPath contains a library of _________
standard function
ends-with(str1, str2)
path
instinct-values(item1, item2, item3...))
43. Returns false or true
day-from-date(date)
boolean(arg)
path
//book/title | //book/price
44. Element nodes may have zero - one - or more _________
substring(str1, start, len)
child nodes
abs(num)
XSLT
45. Returns time right now
div
round(num)
string-length(str)
current-time()
46. ________ allow more specific selections within the XPath
remove((item1, item2, item3...), position)
timezone-from-time(time)
nodes
Predicates
47. Returns logically rounded integer
processor application
//book/title | //book/price
Predicates
round(num)
48. Returns true if str2 appears anywhere inside str1
month-from-date(current-date())
'/'
ends-with(str1, str2)
matches(str1, str2)
49. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
criteria
true() and false()
translate(str1, str2, str3)
50. Returns minute value from time passed
starts-with(str1, str2)
/bookstore/book/title | //price
books/book[position()
minutes-from-time(time)