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. Element nodes may have zero - one - or more _________
child nodes
ends-with(str1, str2)
path
nodes
2. Returns n-length substring from start position
number(arg)
substring(str1, start, len)
nodes
string-length(str)
3. Transformation is actually accomplished by a _____________ like Saxon XSLT
XSLT
instinct-values(item1, item2, item3...))
processor application
matches(str1, str2)
4. XML documents are treated as _________- so the root of the tree is called the document node or root node
ceiling(num)
usable document
trees of nodes
string(arg)
5. Converts string to lower case
syntax
lower-case(str)
.
//book[@isbn]
6. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
replace(str1, str2, str3)
compare(arg1, arg2)
insert-before((item1, item2, item3...), positionX, itemX)
7. Returns next highest integer
XSLT
ceiling(num)
syntax
trees of nodes
8. Returns month value out of date passed
minutes-from-time(time)
/bookstore/*
month-from-date(date)
ends-with(str1, str2)
9. Selects attributes
processing-instruction
@
substring-after(str1, str2)
normalize-space(str)
10. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
//book/title | //book/price
substring-after(str1, str2)
hours-from-time(time)
11. Returns everything before the first occurrence of str2
number(arg)
substring-before(str1, str2)
instinct-values(item1, item2, item3...))
books/book[1]
12. Returns length of passed string
upper-case(str)
books/book[position()
string-length(str)
XSLT
13. Selects last book element from the children of books element
books/book[last()]
processing-instruction
string-join((str1, str2, str3), separator)
substring-before(str1, str2)
14. Selects first two book elements from the children of books element
trees of nodes
contains(str1, str2)
div
books/book[position()
15. Returns length of current node string
'//'
insert-before((item1, item2, item3...), positionX, itemX)
string-length()
//book/title | //book/price
16. Converts value to a string
string(arg)
abs(num)
matches(str1, str2)
..
17. Concatenates strings together with separator between each string
Xpath operators
syntax
compare(arg1, arg2)
string-join((str1, str2, str3), separator)
18. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
day-from-date(date)
month-from-date(current-date())
Xpath operators
string-length()
19. Returns 2008
year-from-date(current-date())
replace(str1, str2, str3)
//title[@*]
syntax
20. Returns time right now
current-time()
contains(str1, str2)
month-from-date(current-date())
string(arg)
21. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
.
remove((item1, item2, item3...), position)
XSLT
string-length(str)
22. Returns true if str2 appears anywhere inside str1
sequence
matches(str1, str2)
/bookstore/*
substring(str,start)
23. Selects all title AND price elements in the entire document
..
normalize-space(str)
//title | //price
usable document
24. Selects all book elements with an attribute isbn=
//book[@isbn]
month-from-date(current-date())
substring-before(str1, str2)
arrays and functions
25. Predicates work somewhat like _____________
trees of nodes
Xpath operators
usable document
arrays and functions
26. Compares strings, returns 0 if same, -1 if not same
//book[@isbn]
ends-with(str1, str2)
compare(arg1, arg2)
.
27. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
transforming
attribute node
'/'
instinct-values(item1, item2, item3...))
28. ________ allow more specific selections within the XPath
ends-with(str1, str2)
Predicates
'/'
books/book[position()
29. Returns year value out of the date passed
year-from-date(date)
books/book[position()
.
div
30. The XPath division operator not "/" cuz "/" is used in path expressions
div
@
year-from-date(date)
matches(str1, str2)
31. Trims leading and trailing spaces
normalize-space(str)
seconds-from-time(time)
replace(str1, str2, str3)
current-time()
32. _______ have 3 primary relationships: parent - child - sibling
not(arg)
current-time()
nodes
/bookstore/book/title | //price
33. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
current-dateTime()
//book/title | //book/price
substring-before(str1, str2)
34. Converts string to upper case
//book/title | //book/price
syntax
upper-case(str)
path
35. 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
translate(str1, str2, str3)
index-of((item1, item2), item3...), target)
string(arg)
criteria
36. 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
37. Selects all elements in the document
insert-before((item1, item2, item3...), positionX, itemX)
//*
parent
boolean(arg)
38. Use a | to select more than one _____ (means AND)
standard function
path
hours-from-time(time)
seconds-from-time(time)
39. selects first book element from the children of books element
ends-with(str1, str2)
floor(num)
compare(arg1, arg2)
books/book[1]
40. Selects all the child nodes of the bookstore element
timezone-from-time(time)
true() and false()
/bookstore/*
floor(num)
41. Returns timezone value from time passed
timezone-from-time(time)
sequence
round(num)
floor(num)
42. Returns false if true - true if false (negative logic)
attribute node
path
not(arg)
current-time()
43. XSL is what we use to get from readable to _________
boolean(arg)
usable document
syntax
transformation
44. Returns next lowest integer
upper-case(str)
matches(str1, str2)
Xpath operators
floor(num)
45. Returns true if str1 starts with str2
substring-before(str1, str2)
starts-with(str1, str2)
path expressions
minutes-from-time(time)
46. Returns logically rounded integer
//title[@*]
round(num)
'/'
//book[@isbn]
47. Sibling nodes all have the same ______
/bookstore/book/title | //price
contains(str1, str2)
parent
instinct-values(item1, item2, item3...))
48. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
compare(arg1, arg2)
div
//book/title | //book/price
49. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
syntax
concat(str1, str2, str3...)
string(arg)
//*
50. XPath contains a library of _________
.
boolean(arg)
remove((item1, item2, item3...), position)
standard function