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