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. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
current-dateTime()
substring(str,start)
attribute node
number(arg)
2. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
substring(str,start)
remove((item1, item2, item3...), position)
usable document
'//'
3. Returns hour value from time passed
current-date()
hours-from-time(time)
sequence
books/book[last()]
4. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
upper-case(str)
path expressions
month-from-date(current-date())
compare(arg1, arg2)
5. Selects from the root node
'/'
6. Returns everything after the first occurrence of str2
substring-after(str1, str2)
current-dateTime()
books/book[price > 35.00]
books/book[1]
7. Returns false or true
arrays and functions
boolean(arg)
.
usable document
8. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
current-dateTime()
instinct-values(item1, item2, item3...))
arrays and functions
round(num)
9. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
upper-case(str)
string-length(str)
month-from-date(date)
10. Element nodes may have zero - one - or more _________
instinct-values(item1, item2, item3...))
ends-with(str1, str2)
child nodes
.
11. selects first book element from the children of books element
current-date()
nodes
floor(num)
books/book[1]
12. Returns complete date/time
syntax
string(arg)
'//'
current-dateTime()
13. XPath is a major element in _______
Xpath operators
current-time()
usable document
XSLT
14. Returns time right now
current-time()
Predicates
processing-instruction
parent node
15. Returns day value from date passed
day-from-date(date)
starts-with(str1, str2)
number(arg)
parent node
16. Selects all title AND price elements in the entire document
remove((item1, item2, item3...), position)
number(arg)
transformation
//title | //price
17. Converts value to a string
path
path expressions
year-from-date(date)
string(arg)
18. Returns year value out of the date passed
upper-case(str)
ceiling(num)
year-from-date(current-date())
year-from-date(date)
19. Returns today's date
//book[@isbn]
translate(str1, str2, str3)
current-date()
trees of nodes
20. Selects all book elements with an attribute isbn=
child nodes
parent
//book[@isbn]
Xpath operators
21. Concatenates strings together with separator between each string
trees of nodes
abs(num)
string-join((str1, str2, str3), separator)
index-of((item1, item2), item3...), target)
22. Travels from current node to select nodes that match - wherever they are
23. Returns logically rounded integer
processor application
path expressions
substring(str1, start, len)
round(num)
24. The XPath division operator not "/" cuz "/" is used in path expressions
arrays and functions
div
criteria
books/book[price > 35.00]
25. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
starts-with(str1, str2)
hours-from-time(time)
current-dateTime()
concat(str1, str2, str3...)
26. Returns length of passed string
minutes-from-time(time)
string-length()
string-length(str)
transforming
27. Returns second value from time passed
substring(str,start)
transformation
remove((item1, item2, item3...), position)
seconds-from-time(time)
28. Returns month value out of date passed
/bookstore/*
syntax
month-from-date(date)
hours-from-time(time)
29. Returns timezone value from time passed
month-from-date(current-date())
replace(str1, str2, str3)
timezone-from-time(time)
books/book[price > 35.00]
30. Selects all the child nodes of the bookstore element
timezone-from-time(time)
/bookstore/*
starts-with(str1, str2)
transforming
31. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
upper-case(str)
processing-instruction
attribute node
month-from-date(current-date())
32. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
'/'
contains(str1, str2)
timezone-from-time(time)
33. Returns n-length substring from start position
year-from-date(current-date())
abs(num)
processor application
substring(str1, start, len)
34. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
upper-case(str)
books/book[last()]
substring(str,start)
insert-before((item1, item2, item3...), positionX, itemX)
35. Converts string number to numeric value
contains(str1, str2)
insert-before((item1, item2, item3...), positionX, itemX)
number(arg)
seconds-from-time(time)
36. Selects all title AND price elements of all book elements
not(arg)
month-from-date(current-date())
string(arg)
//book/title | //book/price
37. Compares strings, returns 0 if same, -1 if not same
sequence
//book[@isbn]
string-length()
compare(arg1, arg2)
38. 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
ceiling(num)
@
criteria
translate(str1, str2, str3)
39. Converts string to upper case
upper-case(str)
lower-case(str)
translate(str1, str2, str3)
normalize-space(str)
40. XPath contains a library of _________
lower-case(str)
current-dateTime()
ends-with(str1, str2)
standard function
41. Selects all title elements which have any attribute
hours-from-time(time)
//title[@*]
index-of((item1, item2), item3...), target)
child nodes
42. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
attribute node
..
books/book[position()
43. Use a | to select more than one _____ (means AND)
books/book[1]
path
remove((item1, item2, item3...), position)
div
44. XSL is what we use to get from readable to _________
Predicates
string-length()
child nodes
usable document
45. Selects all book elements with a child element "price" with values greater than 35
sequence
month-from-date(date)
div
books/book[price > 35.00]
46. Returns true if str1 contains str2
//book[@isbn]
transformation
substring-before(str1, str2)
contains(str1, str2)
47. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
transforming
concat(str1, str2, str3...)
parent
Xpath operators
48. _______ have 3 primary relationships: parent - child - sibling
path expressions
year-from-date(date)
nodes
instinct-values(item1, item2, item3...))
49. Returns 2008
current-dateTime()
translate(str1, str2, str3)
child nodes
year-from-date(current-date())
50. XPath is a for defining parts of an XML document
translate(str1, str2, str3)
processor application
syntax
Xpath operators