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