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
seconds-from-time(time)
transformation
Predicates
processor application
2. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
ends-with(str1, str2)
books/book[price > 35.00]
parent
3. Trims leading and trailing spaces
normalize-space(str)
parent node
/bookstore/book/title | //price
//*
4. 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...))
seconds-from-time(time)
minutes-from-time(time)
criteria
5. Returns logically rounded integer
matches(str1, str2)
round(num)
XSLT
ends-with(str1, str2)
6. Returns everything after the first occurrence of str2
floor(num)
arrays and functions
string-length()
substring-after(str1, str2)
7. In str1, replaces all occurrences of str2 with str3
starts-with(str1, str2)
child nodes
ceiling(num)
replace(str1, str2, str3)
8. _______ have 3 primary relationships: parent - child - sibling
matches(str1, str2)
nodes
string-length(str)
sequence
9. XPath is a for defining parts of an XML document
string-join((str1, str2, str3), separator)
syntax
transformation
current-date()
10. Element nodes may have zero - one - or more _________
ends-with(str1, str2)
/bookstore/book/title | //price
child nodes
transformation
11. Converts value to a string
starts-with(str1, str2)
books/book[price > 35.00]
string-length(str)
string(arg)
12. Returns next lowest integer
path
floor(num)
month-from-date(date)
string-length(str)
13. XSL is what we use to get from readable to _________
year-from-date(date)
child nodes
month-from-date(current-date())
usable document
14. Returns length of current node string
string-length()
@
standard function
current-time()
15. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
substring-after(str1, str2)
starts-with(str1, str2)
//book[@isbn]
16. Selects from the root node
'/'
17. Returns complete date/time
string-length()
child nodes
current-dateTime()
normalize-space(str)
18. Selects all book elements with an attribute isbn=
criteria
current-date()
standard function
//book[@isbn]
19. Selects all elements in the document
usable document
hours-from-time(time)
//*
sequence
20. Selects all title elements of the book element AND all price elements in the entire document
books/book[position()
substring(str,start)
books/book[1]
/bookstore/book/title | //price
21. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
normalize-space(str)
current-date()
ends-with(str1, str2)
index-of((item1, item2), item3...), target)
22. The XPath division operator not "/" cuz "/" is used in path expressions
boolean(arg)
div
books/book[position()
books/book[price > 35.00]
23. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
parent
//title | //price
contains(str1, str2)
24. Returns month value out of date passed
child nodes
attribute node
month-from-date(date)
substring-before(str1, str2)
25. Returns length of passed string
path expressions
instinct-values(item1, item2, item3...))
string-length(str)
lower-case(str)
26. Returns everything before the first occurrence of str2
string-join((str1, str2, str3), separator)
substring-before(str1, str2)
//title | //price
abs(num)
27. Selects first two book elements from the children of books element
string(arg)
Predicates
normalize-space(str)
books/book[position()
28. Returns false if true - true if false (negative logic)
month-from-date(current-date())
current-dateTime()
not(arg)
string-length(str)
29. Selects all title AND price elements in the entire document
Xpath operators
substring(str1, start, len)
//title | //price
lower-case(str)
30. Returns false or true
boolean(arg)
year-from-date(date)
matches(str1, str2)
books/book[price > 35.00]
31. XPath is a major element in _______
books/book[last()]
matches(str1, str2)
XSLT
month-from-date(date)
32. 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)
//title[@*]
nodes
string-length(str)
33. Returns true if str2 appears anywhere inside str1
processor application
insert-before((item1, item2, item3...), positionX, itemX)
//book[@isbn]
matches(str1, str2)
34. Selects all title elements which have any attribute
//book/title | //book/price
normalize-space(str)
//title[@*]
//title | //price
35. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
translate(str1, str2, str3)
/bookstore/*
processing-instruction
instinct-values(item1, item2, item3...))
36. Selects all title AND price elements of all book elements
//book/title | //book/price
abs(num)
number(arg)
div
37. Sibling nodes all have the same ______
parent
trees of nodes
books/book[last()]
/bookstore/book/title | //price
38. Returns true if str1 ends with str2
true() and false()
ends-with(str1, str2)
current-dateTime()
year-from-date(current-date())
39. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
upper-case(str)
books/book[1]
current-dateTime()
40. xpath function categories: numeric - string - boolea - date/time - ________
substring(str,start)
sequence
processing-instruction
ceiling(num)
41. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
//*
transforming
processor application
.
42. XPath contains a library of _________
parent node
standard function
matches(str1, str2)
processor application
43. Returns today's date
current-date()
books/book[1]
attribute node
matches(str1, str2)
44. Returns year value out of the date passed
substring(str1, start, len)
processing-instruction
year-from-date(date)
sequence
45. Returns October or 10 ?
substring(str1, start, len)
translate(str1, str2, str3)
month-from-date(current-date())
string-length(str)
46. 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
string-length()
upper-case(str)
current-time()
47. Converts string to upper case
compare(arg1, arg2)
parent
upper-case(str)
trees of nodes
48. Returns time right now
compare(arg1, arg2)
insert-before((item1, item2, item3...), positionX, itemX)
current-time()
books/book[position()
49. Selects current node
/bookstore/*
replace(str1, str2, str3)
Xpath operators
.
50. Compares strings, returns 0 if same, -1 if not same
string-join((str1, str2, str3), separator)
substring(str1, start, len)
compare(arg1, arg2)
remove((item1, item2, item3...), position)