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