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