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