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