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