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. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
index-of((item1, item2), item3...), target)
..
contains(str1, str2)
2. Returns boolean true or boolean false
Xpath operators
true() and false()
//book[@isbn]
//book/title | //book/price
3. Returns false if true - true if false (negative logic)
not(arg)
round(num)
remove((item1, item2, item3...), position)
current-date()
4. Returns hour value from time passed
books/book[last()]
timezone-from-time(time)
hours-from-time(time)
floor(num)
5. 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)
year-from-date(date)
string-length(str)
XSLT
6. Returns today's date
/bookstore/*
'/'
current-date()
@
7. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
sequence
instinct-values(item1, item2, item3...))
boolean(arg)
8. Returns true if str1 contains str2
abs(num)
insert-before((item1, item2, item3...), positionX, itemX)
contains(str1, str2)
processing-instruction
9. Sibling nodes all have the same ______
string(arg)
parent
XSLT
ceiling(num)
10. Returns month value out of date passed
month-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
floor(num)
current-time()
11. Converts value to a string
processor application
instinct-values(item1, item2, item3...))
string(arg)
timezone-from-time(time)
12. XPath is a for defining parts of an XML document
syntax
floor(num)
child nodes
month-from-date(date)
13. Selects first two book elements from the children of books element
'//'
nodes
parent
books/book[position()
14. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
//title | //price
transforming
//book[@isbn]
Xpath operators
15. Selects attributes
@
ends-with(str1, str2)
//book[@isbn]
compare(arg1, arg2)
16. Selects all title AND price elements in the entire document
substring(str1, start, len)
//book/title | //book/price
//title | //price
substring-after(str1, str2)
17. XPath is a major element in _______
/bookstore/*
month-from-date(date)
XSLT
/bookstore/book/title | //price
18. Returns time right now
div
@
current-time()
//book/title | //book/price
19. Replaces chars of str2 found in str1 with chars of str3
floor(num)
XSLT
translate(str1, str2, str3)
standard function
20. ________ allow more specific selections within the XPath
Predicates
number(arg)
'//'
compare(arg1, arg2)
21. Returns everything after the first occurrence of str2
syntax
transformation
substring-after(str1, str2)
contains(str1, str2)
22. Returns 2008
normalize-space(str)
standard function
string(arg)
year-from-date(current-date())
23. Selects current node
.
compare(arg1, arg2)
floor(num)
current-time()
24. Converts string number to numeric value
trees of nodes
attribute node
number(arg)
string-join((str1, str2, str3), separator)
25. Selects all elements in the document
ends-with(str1, str2)
current-date()
//*
XSLT
26. Returns length of current node string
div
//book[@isbn]
string-length()
seconds-from-time(time)
27. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
string-length()
ends-with(str1, str2)
nodes
28. Returns absolute value (example abs(-2.5) returns 2.5
div
abs(num)
transformation
lower-case(str)
29. _______ have 3 primary relationships: parent - child - sibling
//title[@*]
child nodes
@
nodes
30. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
/bookstore/book/title | //price
usable document
floor(num)
path expressions
31. Selects all title AND price elements of all book elements
//book/title | //book/price
div
matches(str1, str2)
upper-case(str)
32. Returns false or true
/bookstore/*
books/book[position()
//title[@*]
boolean(arg)
33. xpath function categories: numeric - string - boolea - date/time - ________
sequence
current-time()
instinct-values(item1, item2, item3...))
transformation
34. Returns timezone value from time passed
syntax
hours-from-time(time)
'/'
timezone-from-time(time)
35. Selects from the root node
'/'
36. selects first book element from the children of books element
processing-instruction
substring-after(str1, str2)
parent
books/book[1]
37. Concatenates strings together with separator between each string
books/book[position()
instinct-values(item1, item2, item3...))
string-join((str1, str2, str3), separator)
div
38. Returns n-length substring from start position
'//'
path
/bookstore/*
substring(str1, start, len)
39. XPath contains a library of _________
.
Predicates
Xpath operators
standard function
40. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
path expressions
remove((item1, item2, item3...), position)
div
//book[@isbn]
41. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
/bookstore/book/title | //price
floor(num)
div
42. Trims leading and trailing spaces
string-length(str)
month-from-date(current-date())
attribute node
normalize-space(str)
43. Use a | to select more than one _____ (means AND)
path
string-length(str)
lower-case(str)
current-dateTime()
44. Returns October or 10 ?
Xpath operators
concat(str1, str2, str3...)
minutes-from-time(time)
month-from-date(current-date())
45. XML documents are treated as _________- so the root of the tree is called the document node or root node
@
ends-with(str1, str2)
trees of nodes
transforming
46. Selects all book elements with an attribute isbn=
string-join((str1, str2, str3), separator)
compare(arg1, arg2)
books/book[last()]
//book[@isbn]
47. Selects all the child nodes of the bookstore element
/bookstore/*
boolean(arg)
minutes-from-time(time)
parent
48. Returns true if str1 starts with str2
//*
true() and false()
starts-with(str1, str2)
concat(str1, str2, str3...)
49. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
arrays and functions
processing-instruction
XSLT
parent
50. Converts string to upper case
compare(arg1, arg2)
current-time()
upper-case(str)
.