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. every element and every attribute have just one _________
year-from-date(current-date())
parent node
instinct-values(item1, item2, item3...))
starts-with(str1, str2)
2. Selects all title AND price elements in the entire document
criteria
sequence
//title | //price
current-date()
3. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
current-date()
remove((item1, item2, item3...), position)
path expressions
index-of((item1, item2), item3...), target)
4. Returns timezone value from time passed
ceiling(num)
timezone-from-time(time)
parent
hours-from-time(time)
5. Returns day value from date passed
@
floor(num)
//title | //price
day-from-date(date)
6. Converts string to upper case
year-from-date(current-date())
upper-case(str)
substring-after(str1, str2)
XSLT
7. Selects all title AND price elements of all book elements
//book/title | //book/price
insert-before((item1, item2, item3...), positionX, itemX)
nodes
substring(str,start)
8. Returns true if str1 ends with str2
substring(str1, start, len)
ends-with(str1, str2)
Predicates
month-from-date(current-date())
9. Returns year value out of the date passed
XSLT
books/book[last()]
standard function
year-from-date(date)
10. XPath is a major element in _______
transformation
syntax
XSLT
attribute node
11. Returns boolean true or boolean false
year-from-date(date)
processor application
boolean(arg)
true() and false()
12. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
substring-before(str1, str2)
.
number(arg)
13. XPath is a for defining parts of an XML document
path expressions
syntax
criteria
insert-before((item1, item2, item3...), positionX, itemX)
14. Sibling nodes all have the same ______
parent
substring(str,start)
'/'
lower-case(str)
15. Returns next lowest integer
.
seconds-from-time(time)
floor(num)
true() and false()
16. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
'//'
standard function
child nodes
17. Returns next highest integer
string-length()
true() and false()
//title[@*]
ceiling(num)
18. Returns everything after the first occurrence of str2
index-of((item1, item2), item3...), target)
matches(str1, str2)
substring-after(str1, str2)
standard function
19. The XPath division operator not "/" cuz "/" is used in path expressions
Xpath operators
div
string(arg)
number(arg)
20. Compares strings, returns 0 if same, -1 if not same
year-from-date(current-date())
sequence
compare(arg1, arg2)
timezone-from-time(time)
21. Returns today's date
day-from-date(date)
timezone-from-time(time)
current-date()
syntax
22. Selects first two book elements from the children of books element
books/book[position()
/bookstore/book/title | //price
path expressions
//title[@*]
23. Returns true if str2 appears anywhere inside str1
normalize-space(str)
boolean(arg)
floor(num)
matches(str1, str2)
24. Returns everything before the first occurrence of str2
number(arg)
substring-before(str1, str2)
ceiling(num)
syntax
25. xpath function categories: numeric - string - boolea - date/time - ________
insert-before((item1, item2, item3...), positionX, itemX)
sequence
not(arg)
//title | //price
26. Converts string number to numeric value
number(arg)
day-from-date(date)
year-from-date(date)
attribute node
27. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
contains(str1, str2)
index-of((item1, item2), item3...), target)
books/book[position()
Xpath operators
28. Converts value to a string
concat(str1, str2, str3...)
instinct-values(item1, item2, item3...))
string(arg)
XSLT
29. Selects all elements in the document
year-from-date(current-date())
insert-before((item1, item2, item3...), positionX, itemX)
//*
books/book[last()]
30. Converts string to lower case
lower-case(str)
trees of nodes
processing-instruction
books/book[position()
31. Returns logically rounded integer
'/'
index-of((item1, item2), item3...), target)
round(num)
current-dateTime()
32. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
replace(str1, str2, str3)
processing-instruction
month-from-date(current-date())
floor(num)
33. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
index-of((item1, item2), item3...), target)
//title[@*]
transformation
Predicates
34. Returns substring from start position to end of string
substring(str,start)
string(arg)
criteria
processing-instruction
35. Selects all book elements with a child element "price" with values greater than 35
year-from-date(date)
books/book[price > 35.00]
not(arg)
path
36. Returns length of current node string
compare(arg1, arg2)
insert-before((item1, item2, item3...), positionX, itemX)
string-length()
/bookstore/book/title | //price
37. Element nodes may have zero - one - or more _________
child nodes
translate(str1, str2, str3)
timezone-from-time(time)
day-from-date(date)
38. 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)
translate(str1, str2, str3)
usable document
'/'
39. Returns true if str1 contains str2
number(arg)
'//'
contains(str1, str2)
compare(arg1, arg2)
40. Returns length of passed string
number(arg)
string-length(str)
current-time()
parent node
41. Concatenates strings together with separator between each string
@
//title | //price
timezone-from-time(time)
string-join((str1, str2, str3), separator)
42. Returns false or true
lower-case(str)
boolean(arg)
processor application
//book[@isbn]
43. _______ have 3 primary relationships: parent - child - sibling
//title[@*]
ends-with(str1, str2)
index-of((item1, item2), item3...), target)
nodes
44. Selects parent of current node
translate(str1, str2, str3)
..
Xpath operators
/bookstore/book/title | //price
45. Returns false if true - true if false (negative logic)
trees of nodes
/bookstore/book/title | //price
index-of((item1, item2), item3...), target)
not(arg)
46. Returns October or 10 ?
month-from-date(current-date())
/bookstore/book/title | //price
not(arg)
insert-before((item1, item2, item3...), positionX, itemX)
47. XSL is what we use to get from readable to _________
usable document
not(arg)
trees of nodes
//*
48. Replaces chars of str2 found in str1 with chars of str3
compare(arg1, arg2)
/bookstore/*
ends-with(str1, str2)
translate(str1, str2, str3)
49. Returns n-length substring from start position
XSLT
substring(str,start)
substring(str1, start, len)
not(arg)
50. Selects all the child nodes of the bookstore element
/bookstore/*
//book/title | //book/price
upper-case(str)
translate(str1, str2, str3)