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 everything before the first occurrence of str2
//book/title | //book/price
current-time()
sequence
substring-before(str1, str2)
2. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
//book[@isbn]
replace(str1, str2, str3)
'//'
3. Returns timezone value from time passed
timezone-from-time(time)
string(arg)
books/book[position()
processor application
4. Returns false or true
path
month-from-date(current-date())
boolean(arg)
'/'
5. Selects from the root node
'/'
6. Selects all title AND price elements in the entire document
month-from-date(date)
string-length(str)
//title | //price
transformation
7. Returns hour value from time passed
hours-from-time(time)
month-from-date(current-date())
usable document
processing-instruction
8. Returns October or 10 ?
seconds-from-time(time)
month-from-date(current-date())
processor application
minutes-from-time(time)
9. Selects attributes
//title[@*]
sequence
/bookstore/*
@
10. Returns logically rounded integer
round(num)
year-from-date(date)
'//'
Xpath operators
11. Selects all title AND price elements of all book elements
parent
//book/title | //book/price
index-of((item1, item2), item3...), target)
processor application
12. The process of taking raw XML - adding XSL - and outputting a document file of some type
normalize-space(str)
'/'
transformation
//title[@*]
13. Returns absolute value (example abs(-2.5) returns 2.5
transformation
'//'
normalize-space(str)
abs(num)
14. Returns true if str1 contains str2
contains(str1, str2)
seconds-from-time(time)
//title[@*]
matches(str1, str2)
15. Sibling nodes all have the same ______
substring(str1, start, len)
upper-case(str)
parent
XSLT
16. Use a | to select more than one _____ (means AND)
.
path
criteria
XSLT
17. Returns 2008
current-date()
number(arg)
usable document
year-from-date(current-date())
18. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
syntax
current-date()
month-from-date(current-date())
19. every element and every attribute have just one _________
ends-with(str1, str2)
processing-instruction
//*
parent node
20. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
attribute node
processing-instruction
not(arg)
year-from-date(current-date())
21. Returns time right now
current-time()
string-length()
Predicates
number(arg)
22. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
upper-case(str)
processor application
string-length()
path expressions
23. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
substring-after(str1, str2)
translate(str1, str2, str3)
attribute node
year-from-date(current-date())
24. Returns day value from date passed
books/book[price > 35.00]
translate(str1, str2, str3)
day-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
25. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
path expressions
instinct-values(item1, item2, item3...))
floor(num)
books/book[1]
26. Replaces chars of str2 found in str1 with chars of str3
seconds-from-time(time)
transforming
processing-instruction
translate(str1, str2, str3)
27. ________ allow more specific selections within the XPath
nodes
concat(str1, str2, str3...)
timezone-from-time(time)
Predicates
28. Predicates work somewhat like _____________
arrays and functions
criteria
translate(str1, str2, str3)
substring-before(str1, str2)
29. Selects last book element from the children of books element
books/book[last()]
ends-with(str1, str2)
books/book[price > 35.00]
not(arg)
30. Returns everything after the first occurrence of str2
nodes
//title | //price
normalize-space(str)
substring-after(str1, str2)
31. Converts value to a string
string-length(str)
hours-from-time(time)
..
string(arg)
32. Returns boolean true or boolean false
true() and false()
/bookstore/book/title | //price
string(arg)
string-join((str1, str2, str3), separator)
33. Returns next lowest integer
timezone-from-time(time)
boolean(arg)
seconds-from-time(time)
floor(num)
34. Selects parent of current node
child nodes
nodes
string(arg)
..
35. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
insert-before((item1, item2, item3...), positionX, itemX)
transforming
string(arg)
seconds-from-time(time)
36. XPath is a major element in _______
usable document
lower-case(str)
XSLT
div
37. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
standard function
transforming
abs(num)
'/'
38. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
timezone-from-time(time)
round(num)
'//'
39. Returns complete date/time
current-dateTime()
year-from-date(current-date())
lower-case(str)
XSLT
40. Returns length of current node string
substring-after(str1, str2)
string-length()
child nodes
'/'
41. Converts string to lower case
ceiling(num)
string-length(str)
boolean(arg)
lower-case(str)
42. Selects all elements in the document
//*
.
current-time()
processor application
43. Selects all the child nodes of the bookstore element
hours-from-time(time)
/bookstore/*
round(num)
boolean(arg)
44. Returns length of passed string
concat(str1, str2, str3...)
abs(num)
string-length(str)
/bookstore/book/title | //price
45. Returns n-length substring from start position
substring(str1, start, len)
timezone-from-time(time)
hours-from-time(time)
books/book[position()
46. Element nodes may have zero - one - or more _________
/bookstore/book/title | //price
month-from-date(date)
child nodes
string(arg)
47. Returns minute value from time passed
arrays and functions
/bookstore/book/title | //price
matches(str1, str2)
minutes-from-time(time)
48. Selects first two book elements from the children of books element
criteria
//book[@isbn]
replace(str1, str2, str3)
books/book[position()
49. Concatenates strings together with separator between each string
current-dateTime()
child nodes
string-join((str1, str2, str3), separator)
lower-case(str)
50. XPath contains a library of _________
standard function
year-from-date(current-date())
transforming
sequence