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