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 length of passed string
timezone-from-time(time)
seconds-from-time(time)
round(num)
string-length(str)
2. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
current-time()
remove((item1, item2, item3...), position)
path expressions
div
3. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
standard function
contains(str1, str2)
path expressions
books/book[price > 35.00]
4. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
child nodes
insert-before((item1, item2, item3...), positionX, itemX)
//book[@isbn]
instinct-values(item1, item2, item3...))
5. Returns today's date
abs(num)
current-date()
criteria
normalize-space(str)
6. The process of taking raw XML - adding XSL - and outputting a document file of some type
div
parent node
'/'
transformation
7. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
div
floor(num)
transforming
current-dateTime()
8. Predicates work somewhat like _____________
syntax
arrays and functions
matches(str1, str2)
books/book[last()]
9. Returns logically rounded integer
string-join((str1, str2, str3), separator)
substring-before(str1, str2)
round(num)
@
10. Compares strings, returns 0 if same, -1 if not same
trees of nodes
div
translate(str1, str2, str3)
compare(arg1, arg2)
11. XPath is a for defining parts of an XML document
..
number(arg)
'/'
syntax
12. Selects current node
.
number(arg)
//*
normalize-space(str)
13. Converts string to upper case
current-time()
upper-case(str)
parent
usable document
14. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
substring(str1, start, len)
instinct-values(item1, item2, item3...))
path expressions
current-dateTime()
15. Selects all book elements with a child element "price" with values greater than 35
substring-before(str1, str2)
round(num)
criteria
books/book[price > 35.00]
16. Returns time right now
substring(str,start)
current-time()
boolean(arg)
books/book[1]
17. Returns n-length substring from start position
substring(str1, start, len)
abs(num)
concat(str1, str2, str3...)
starts-with(str1, str2)
18. Returns minute value from time passed
usable document
arrays and functions
attribute node
minutes-from-time(time)
19. Element nodes may have zero - one - or more _________
Predicates
child nodes
string(arg)
timezone-from-time(time)
20. Selects all title AND price elements of all book elements
string-length()
substring(str1, start, len)
ends-with(str1, str2)
//book/title | //book/price
21. Returns second value from time passed
//book/title | //book/price
minutes-from-time(time)
/bookstore/book/title | //price
seconds-from-time(time)
22. Selects all title AND price elements in the entire document
//title | //price
//book/title | //book/price
books/book[1]
replace(str1, str2, str3)
23. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
current-time()
index-of((item1, item2), item3...), target)
//book/title | //book/price
processor application
24. The XPath division operator not "/" cuz "/" is used in path expressions
standard function
remove((item1, item2, item3...), position)
div
year-from-date(current-date())
25. Selects all title elements which have any attribute
minutes-from-time(time)
//title[@*]
'/'
abs(num)
26. Returns day value from date passed
@
timezone-from-time(time)
string-join((str1, str2, str3), separator)
day-from-date(date)
27. ________ allow more specific selections within the XPath
string-join((str1, str2, str3), separator)
abs(num)
Predicates
/bookstore/*
28. Sibling nodes all have the same ______
boolean(arg)
parent
books/book[1]
starts-with(str1, str2)
29. Returns next lowest integer
'/'
boolean(arg)
floor(num)
index-of((item1, item2), item3...), target)
30. Converts string number to numeric value
contains(str1, str2)
translate(str1, str2, str3)
number(arg)
trees of nodes
31. Selects parent of current node
upper-case(str)
minutes-from-time(time)
..
current-time()
32. XPath is a major element in _______
XSLT
//title | //price
processing-instruction
.
33. Transformation is actually accomplished by a _____________ like Saxon XSLT
floor(num)
books/book[position()
processor application
string-length()
34. Returns everything before the first occurrence of str2
substring-before(str1, str2)
hours-from-time(time)
books/book[position()
month-from-date(date)
35. Selects all elements in the document
substring-before(str1, str2)
//*
normalize-space(str)
books/book[1]
36. Converts string to lower case
matches(str1, str2)
books/book[position()
parent node
lower-case(str)
37. Selects attributes
@
month-from-date(date)
books/book[position()
substring-before(str1, str2)
38. Returns timezone value from time passed
substring-before(str1, str2)
minutes-from-time(time)
'/'
timezone-from-time(time)
39. xpath function categories: numeric - string - boolea - date/time - ________
sequence
floor(num)
books/book[1]
string-length()
40. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
usable document
current-date()
instinct-values(item1, item2, item3...))
41. Returns everything after the first occurrence of str2
instinct-values(item1, item2, item3...))
substring-after(str1, str2)
child nodes
current-dateTime()
42. Selects first two book elements from the children of books element
upper-case(str)
books/book[position()
trees of nodes
substring(str1, start, len)
43. 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
floor(num)
criteria
parent
normalize-space(str)
44. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
criteria
@
Xpath operators
45. Replaces chars of str2 found in str1 with chars of str3
round(num)
translate(str1, str2, str3)
..
year-from-date(current-date())
46. Returns hour value from time passed
'/'
current-date()
hours-from-time(time)
parent
47. Use a | to select more than one _____ (means AND)
books/book[position()
path
contains(str1, str2)
/bookstore/book/title | //price
48. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
boolean(arg)
attribute node
trees of nodes
'/'
49. XSL is what we use to get from readable to _________
usable document
string(arg)
boolean(arg)
/bookstore/*
50. Returns year value out of the date passed
year-from-date(date)
boolean(arg)
floor(num)
replace(str1, str2, str3)