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