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