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