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