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