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