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