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 upper case
attribute node
upper-case(str)
//book[@isbn]
concat(str1, str2, str3...)
2. Transformation is actually accomplished by a _____________ like Saxon XSLT
books/book[last()]
//title | //price
processor application
current-dateTime()
3. Predicates work somewhat like _____________
instinct-values(item1, item2, item3...))
/bookstore/*
arrays and functions
parent node
4. Returns everything before the first occurrence of str2
day-from-date(date)
minutes-from-time(time)
floor(num)
substring-before(str1, str2)
5. Selects current node
substring-after(str1, str2)
.
string(arg)
string-length(str)
6. XPath contains a library of _________
standard function
compare(arg1, arg2)
/bookstore/book/title | //price
insert-before((item1, item2, item3...), positionX, itemX)
7. 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)
substring(str,start)
ceiling(num)
current-date()
8. Selects all title elements of the book element AND all price elements in the entire document
contains(str1, str2)
attribute node
/bookstore/book/title | //price
path
9. Returns boolean true or boolean false
div
arrays and functions
seconds-from-time(time)
true() and false()
10. Converts string to lower case
//book/title | //book/price
books/book[last()]
lower-case(str)
index-of((item1, item2), item3...), target)
11. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
ends-with(str1, str2)
remove((item1, item2, item3...), position)
string-length(str)
12. Returns absolute value (example abs(-2.5) returns 2.5
seconds-from-time(time)
abs(num)
normalize-space(str)
translate(str1, str2, str3)
13. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
instinct-values(item1, item2, item3...))
/bookstore/book/title | //price
floor(num)
14. Returns month value out of date passed
upper-case(str)
normalize-space(str)
month-from-date(date)
lower-case(str)
15. xpath function categories: numeric - string - boolea - date/time - ________
sequence
Predicates
transformation
ends-with(str1, str2)
16. Returns next highest integer
XSLT
ceiling(num)
current-date()
path
17. The process of taking raw XML - adding XSL - and outputting a document file of some type
string(arg)
translate(str1, str2, str3)
transformation
substring(str1, start, len)
18. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
substring-after(str1, str2)
concat(str1, str2, str3...)
criteria
19. Returns October or 10 ?
string(arg)
arrays and functions
..
month-from-date(current-date())
20. Returns minute value from time passed
path
string-length(str)
books/book[position()
minutes-from-time(time)
21. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
substring-before(str1, str2)
concat(str1, str2, str3...)
'//'
sequence
22. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path
parent node
trees of nodes
path expressions
23. Returns complete date/time
month-from-date(date)
current-date()
current-dateTime()
starts-with(str1, str2)
24. Selects all title AND price elements of all book elements
//book[@isbn]
//book/title | //book/price
normalize-space(str)
remove((item1, item2, item3...), position)
25. Returns n-length substring from start position
path
string-length(str)
month-from-date(date)
substring(str1, start, len)
26. Selects all elements in the document
//*
attribute node
//title[@*]
parent node
27. Selects all title elements which have any attribute
//title[@*]
normalize-space(str)
attribute node
processing-instruction
28. Replaces chars of str2 found in str1 with chars of str3
year-from-date(current-date())
Xpath operators
path expressions
translate(str1, str2, str3)
29. Returns logically rounded integer
processing-instruction
round(num)
arrays and functions
string(arg)
30. Selects all title AND price elements in the entire document
//title | //price
year-from-date(current-date())
'/'
path expressions
31. Selects all book elements with a child element "price" with values greater than 35
syntax
books/book[price > 35.00]
normalize-space(str)
usable document
32. Returns next lowest integer
/bookstore/book/title | //price
remove((item1, item2, item3...), position)
sequence
floor(num)
33. The XPath division operator not "/" cuz "/" is used in path expressions
year-from-date(date)
//book[@isbn]
ceiling(num)
div
34. Selects from the root node
'/'
35. Returns day value from date passed
insert-before((item1, item2, item3...), positionX, itemX)
substring(str,start)
substring-before(str1, str2)
day-from-date(date)
36. ________ allow more specific selections within the XPath
ceiling(num)
parent
processing-instruction
Predicates
37. Returns true if str1 starts with str2
books/book[price > 35.00]
starts-with(str1, str2)
substring(str1, start, len)
path
38. Selects all book elements with an attribute isbn=
//book[@isbn]
compare(arg1, arg2)
syntax
round(num)
39. 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
40. Returns true if str2 appears anywhere inside str1
current-time()
trees of nodes
matches(str1, str2)
starts-with(str1, str2)
41. Returns true if str1 ends with str2
month-from-date(current-date())
boolean(arg)
ends-with(str1, str2)
..
42. 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...))
Predicates
minutes-from-time(time)
43. Returns hour value from time passed
hours-from-time(time)
lower-case(str)
seconds-from-time(time)
substring(str,start)
44. Returns second value from time passed
div
seconds-from-time(time)
boolean(arg)
timezone-from-time(time)
45. In str1, replaces all occurrences of str2 with str3
remove((item1, item2, item3...), position)
replace(str1, str2, str3)
not(arg)
substring-before(str1, str2)
46. selects first book element from the children of books element
books/book[1]
transformation
compare(arg1, arg2)
upper-case(str)
47. Converts string number to numeric value
Xpath operators
month-from-date(date)
number(arg)
contains(str1, str2)
48. Converts value to a string
'//'
syntax
string(arg)
substring(str,start)
49. Returns 2008
year-from-date(current-date())
attribute node
//*
floor(num)
50. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
year-from-date(current-date())
/bookstore/book/title | //price
remove((item1, item2, item3...), position)
attribute node