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
instinct-values(item1, item2, item3...))
lower-case(str)
//book/title | //book/price
processor application
2. Converts value to a string
concat(str1, str2, str3...)
string(arg)
books/book[price > 35.00]
books/book[last()]
3. every element and every attribute have just one _________
//book[@isbn]
syntax
contains(str1, str2)
parent node
4. Returns next highest integer
parent node
ceiling(num)
/bookstore/book/title | //price
..
5. Selects all title elements of the book element AND all price elements in the entire document
books/book[position()
day-from-date(date)
@
/bookstore/book/title | //price
6. Returns n-length substring from start position
current-time()
substring(str1, start, len)
substring-after(str1, str2)
//title | //price
7. Selects all book elements with an attribute isbn=
books/book[last()]
substring(str1, start, len)
//book[@isbn]
string(arg)
8. 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)
books/book[1]
compare(arg1, arg2)
starts-with(str1, str2)
9. Trims leading and trailing spaces
contains(str1, str2)
normalize-space(str)
.
books/book[price > 35.00]
10. Selects parent of current node
ceiling(num)
remove((item1, item2, item3...), position)
translate(str1, str2, str3)
..
11. Selects all title elements which have any attribute
index-of((item1, item2), item3...), target)
abs(num)
syntax
//title[@*]
12. ________ allow more specific selections within the XPath
Predicates
path
parent
current-dateTime()
13. In str1, replaces all occurrences of str2 with str3
string-join((str1, str2, str3), separator)
processing-instruction
replace(str1, str2, str3)
instinct-values(item1, item2, item3...))
14. Returns year value out of the date passed
year-from-date(date)
usable document
true() and false()
lower-case(str)
15. Returns length of passed string
normalize-space(str)
transformation
.
string-length(str)
16. xpath function categories: numeric - string - boolea - date/time - ________
//title | //price
books/book[last()]
contains(str1, str2)
sequence
17. 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
18. Converts string number to numeric value
substring-before(str1, str2)
books/book[last()]
div
number(arg)
19. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
XSLT
//title[@*]
floor(num)
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
//book[@isbn]
'//'
criteria
contains(str1, str2)
21. XSL is what we use to get from readable to _________
//title | //price
substring-before(str1, str2)
usable document
seconds-from-time(time)
22. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
trees of nodes
sequence
instinct-values(item1, item2, item3...))
transformation
23. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
XSLT
div
attribute node
//book[@isbn]
24. Selects all elements in the document
parent
//*
substring-after(str1, str2)
true() and false()
25. Returns month value out of date passed
processing-instruction
month-from-date(date)
number(arg)
attribute node
26. Returns everything before the first occurrence of str2
contains(str1, str2)
.
minutes-from-time(time)
substring-before(str1, str2)
27. selects first book element from the children of books element
not(arg)
books/book[1]
'//'
/bookstore/book/title | //price
28. Predicates work somewhat like _____________
string-length()
arrays and functions
abs(num)
child nodes
29. Returns everything after the first occurrence of str2
path expressions
substring-after(str1, str2)
div
/bookstore/book/title | //price
30. Returns time right now
//book[@isbn]
path
current-time()
concat(str1, str2, str3...)
31. Returns false or true
floor(num)
month-from-date(date)
boolean(arg)
transforming
32. Selects from the root node
'/'
33. XPath is a for defining parts of an XML document
Xpath operators
attribute node
syntax
sequence
34. Returns complete date/time
transformation
floor(num)
path
current-dateTime()
35. Returns timezone value from time passed
seconds-from-time(time)
timezone-from-time(time)
books/book[1]
parent node
36. Returns today's date
current-date()
string-length()
upper-case(str)
substring-after(str1, str2)
37. Returns hour value from time passed
'//'
processing-instruction
index-of((item1, item2), item3...), target)
hours-from-time(time)
38. Returns minute value from time passed
compare(arg1, arg2)
current-date()
normalize-space(str)
minutes-from-time(time)
39. XPath is a major element in _______
//book[@isbn]
XSLT
substring-after(str1, str2)
ends-with(str1, str2)
40. Returns true if str1 starts with str2
starts-with(str1, str2)
not(arg)
XSLT
ceiling(num)
41. Selects attributes
instinct-values(item1, item2, item3...))
'/'
current-date()
@
42. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
books/book[1]
seconds-from-time(time)
remove((item1, item2, item3...), position)
string-length()
43. Returns absolute value (example abs(-2.5) returns 2.5
usable document
day-from-date(date)
timezone-from-time(time)
abs(num)
44. XPath contains a library of _________
standard function
day-from-date(date)
/bookstore/book/title | //price
seconds-from-time(time)
45. Returns 2008
true() and false()
div
year-from-date(current-date())
//book[@isbn]
46. Selects first two book elements from the children of books element
processing-instruction
seconds-from-time(time)
index-of((item1, item2), item3...), target)
books/book[position()
47. The XPath division operator not "/" cuz "/" is used in path expressions
ends-with(str1, str2)
translate(str1, str2, str3)
processing-instruction
div
48. Returns next lowest integer
floor(num)
starts-with(str1, str2)
round(num)
/bookstore/book/title | //price
49. Returns day value from date passed
parent node
day-from-date(date)
transforming
arrays and functions
50. Sibling nodes all have the same ______
normalize-space(str)
parent
substring-before(str1, str2)
path