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
path
string-join((str1, str2, str3), separator)
transformation
lower-case(str)
2. Selects last book element from the children of books element
books/book[last()]
sequence
/bookstore/*
nodes
3. Sibling nodes all have the same ______
upper-case(str)
string-join((str1, str2, str3), separator)
month-from-date(date)
parent
4. Returns month value out of date passed
month-from-date(date)
year-from-date(current-date())
instinct-values(item1, item2, item3...))
//title | //price
5. In str1, replaces all occurrences of str2 with str3
'//'
trees of nodes
replace(str1, str2, str3)
standard function
6. Returns next highest integer
ceiling(num)
path expressions
instinct-values(item1, item2, item3...))
Predicates
7. Returns timezone value from time passed
timezone-from-time(time)
insert-before((item1, item2, item3...), positionX, itemX)
string(arg)
minutes-from-time(time)
8. Selects all title AND price elements in the entire document
string-join((str1, str2, str3), separator)
//title | //price
'/'
abs(num)
9. Returns time right now
.
current-time()
round(num)
hours-from-time(time)
10. Returns true if str1 ends with str2
remove((item1, item2, item3...), position)
books/book[price > 35.00]
month-from-date(date)
ends-with(str1, str2)
11. xpath function categories: numeric - string - boolea - date/time - ________
//book[@isbn]
..
sequence
month-from-date(current-date())
12. Returns complete date/time
matches(str1, str2)
current-time()
substring-before(str1, str2)
current-dateTime()
13. ________ allow more specific selections within the XPath
string(arg)
Predicates
normalize-space(str)
parent node
14. XSL is what we use to get from readable to _________
true() and false()
translate(str1, str2, str3)
usable document
'//'
15. Selects current node
substring(str,start)
upper-case(str)
.
trees of nodes
16. Replaces chars of str2 found in str1 with chars of str3
syntax
child nodes
translate(str1, str2, str3)
//title[@*]
17. Concatenates strings together with separator between each string
//*
books/book[position()
string-join((str1, str2, str3), separator)
sequence
18. Converts string to upper case
upper-case(str)
true() and false()
child nodes
substring(str,start)
19. Selects all book elements with an attribute isbn=
//book[@isbn]
year-from-date(current-date())
string-length(str)
year-from-date(date)
20. Selects all title AND price elements of all book elements
seconds-from-time(time)
//book/title | //book/price
compare(arg1, arg2)
true() and false()
21. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
abs(num)
remove((item1, item2, item3...), position)
substring-before(str1, str2)
hours-from-time(time)
22. 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
remove((item1, item2, item3...), position)
nodes
criteria
substring-after(str1, str2)
23. Selects all title elements which have any attribute
books/book[last()]
//title[@*]
arrays and functions
nodes
24. Selects first two book elements from the children of books element
/bookstore/book/title | //price
true() and false()
@
books/book[position()
25. Returns false if true - true if false (negative logic)
//*
not(arg)
starts-with(str1, str2)
'/'
26. Selects all book elements with a child element "price" with values greater than 35
current-dateTime()
//title | //price
boolean(arg)
books/book[price > 35.00]
27. Compares strings, returns 0 if same, -1 if not same
remove((item1, item2, item3...), position)
compare(arg1, arg2)
substring(str,start)
div
28. Travels from current node to select nodes that match - wherever they are
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
29. Returns day value from date passed
lower-case(str)
replace(str1, str2, str3)
current-date()
day-from-date(date)
30. Transformation is actually accomplished by a _____________ like Saxon XSLT
concat(str1, str2, str3...)
month-from-date(current-date())
processor application
compare(arg1, arg2)
31. XPath contains a library of _________
standard function
books/book[last()]
//*
substring(str1, start, len)
32. Returns year value out of the date passed
month-from-date(current-date())
.
year-from-date(date)
day-from-date(date)
33. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
starts-with(str1, str2)
year-from-date(current-date())
insert-before((item1, item2, item3...), positionX, itemX)
//book[@isbn]
34. Returns true if str2 appears anywhere inside str1
..
matches(str1, str2)
normalize-space(str)
sequence
35. Returns 2008
timezone-from-time(time)
lower-case(str)
ceiling(num)
year-from-date(current-date())
36. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
//title[@*]
path expressions
compare(arg1, arg2)
replace(str1, str2, str3)
37. Converts value to a string
div
substring-after(str1, str2)
string(arg)
parent node
38. Converts string number to numeric value
transforming
number(arg)
Xpath operators
child nodes
39. Returns n-length substring from start position
substring(str1, start, len)
//book/title | //book/price
compare(arg1, arg2)
seconds-from-time(time)
40. Returns false or true
boolean(arg)
//*
replace(str1, str2, str3)
ceiling(num)
41. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
current-time()
books/book[price > 35.00]
//title[@*]
processing-instruction
42. Selects from the root node
'/'
43. XPath is a major element in _______
'//'
path expressions
insert-before((item1, item2, item3...), positionX, itemX)
XSLT
44. Selects all the child nodes of the bookstore element
contains(str1, str2)
month-from-date(current-date())
/bookstore/*
usable document
45. Element nodes may have zero - one - or more _________
processing-instruction
standard function
child nodes
month-from-date(date)
46. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
day-from-date(date)
'//'
path
47. The XPath division operator not "/" cuz "/" is used in path expressions
remove((item1, item2, item3...), position)
transforming
div
number(arg)
48. Returns length of passed string
//book/title | //book/price
string-length(str)
month-from-date(current-date())
criteria
49. Returns next lowest integer
sequence
parent node
string-length(str)
floor(num)
50. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
..
instinct-values(item1, item2, item3...))
books/book[price > 35.00]
'//'