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 timezone value from time passed
seconds-from-time(time)
.
timezone-from-time(time)
arrays and functions
2. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
not(arg)
concat(str1, str2, str3...)
upper-case(str)
books/book[1]
3. Travels from current node to select nodes that match - wherever they are
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. Returns true if str1 ends with str2
ends-with(str1, str2)
string-join((str1, str2, str3), separator)
seconds-from-time(time)
abs(num)
5. XSL is what we use to get from readable to _________
//*
minutes-from-time(time)
usable document
arrays and functions
6. Returns true if str1 contains str2
standard function
contains(str1, str2)
//title[@*]
month-from-date(date)
7. Returns 2008
contains(str1, str2)
year-from-date(current-date())
concat(str1, str2, str3...)
month-from-date(date)
8. Selects last book element from the children of books element
books/book[last()]
contains(str1, str2)
boolean(arg)
floor(num)
9. Returns month value out of date passed
year-from-date(date)
month-from-date(date)
processing-instruction
not(arg)
10. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
ceiling(num)
processor application
Xpath operators
11. Returns n-length substring from start position
processing-instruction
contains(str1, str2)
parent node
substring(str1, start, len)
12. _______ have 3 primary relationships: parent - child - sibling
round(num)
books/book[price > 35.00]
nodes
month-from-date(current-date())
13. Selects first two book elements from the children of books element
true() and false()
substring(str,start)
books/book[position()
books/book[price > 35.00]
14. every element and every attribute have just one _________
string-join((str1, str2, str3), separator)
processing-instruction
parent node
@
15. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
//title | //price
instinct-values(item1, item2, item3...))
year-from-date(date)
year-from-date(current-date())
16. Replaces chars of str2 found in str1 with chars of str3
string-length(str)
translate(str1, str2, str3)
/bookstore/*
substring-before(str1, str2)
17. Returns everything after the first occurrence of str2
hours-from-time(time)
substring-after(str1, str2)
round(num)
minutes-from-time(time)
18. Converts string number to numeric value
month-from-date(date)
floor(num)
number(arg)
abs(num)
19. Returns everything before the first occurrence of str2
instinct-values(item1, item2, item3...))
Predicates
substring-before(str1, str2)
child nodes
20. Returns minute value from time passed
XSLT
books/book[position()
not(arg)
minutes-from-time(time)
21. Converts value to a string
path
string(arg)
minutes-from-time(time)
parent node
22. Selects all the child nodes of the bookstore element
//book[@isbn]
remove((item1, item2, item3...), position)
div
/bookstore/*
23. The XPath division operator not "/" cuz "/" is used in path expressions
string(arg)
'//'
floor(num)
div
24. Returns logically rounded integer
year-from-date(date)
true() and false()
round(num)
nodes
25. Returns October or 10 ?
div
number(arg)
month-from-date(current-date())
index-of((item1, item2), item3...), target)
26. Converts string to lower case
lower-case(str)
normalize-space(str)
year-from-date(current-date())
string-length()
27. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
hours-from-time(time)
timezone-from-time(time)
current-time()
28. Returns today's date
nodes
current-date()
string-length(str)
starts-with(str1, str2)
29. Returns day value from date passed
.
'//'
day-from-date(date)
string-join((str1, str2, str3), separator)
30. Returns complete date/time
//book/title | //book/price
child nodes
current-dateTime()
current-time()
31. 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)
nodes
@
floor(num)
32. Selects all title elements of the book element AND all price elements in the entire document
year-from-date(date)
/bookstore/*
transformation
/bookstore/book/title | //price
33. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
month-from-date(current-date())
child nodes
translate(str1, str2, str3)
34. XPath is a major element in _______
XSLT
current-date()
..
standard function
35. Element nodes may have zero - one - or more _________
child nodes
/bookstore/*
abs(num)
..
36. selects first book element from the children of books element
books/book[1]
month-from-date(date)
div
transforming
37. Returns year value out of the date passed
translate(str1, str2, str3)
substring-after(str1, str2)
substring(str1, start, len)
year-from-date(date)
38. Returns boolean true or boolean false
..
.
true() and false()
nodes
39. Selects all book elements with a child element "price" with values greater than 35
current-date()
books/book[price > 35.00]
usable document
XSLT
40. Selects parent of current node
..
normalize-space(str)
.
lower-case(str)
41. Compares strings, returns 0 if same, -1 if not same
'/'
string-length()
concat(str1, str2, str3...)
compare(arg1, arg2)
42. Returns time right now
current-time()
substring(str,start)
XSLT
path expressions
43. Returns length of passed string
string-length(str)
path
current-time()
transforming
44. Selects all title AND price elements of all book elements
parent
true() and false()
//book/title | //book/price
current-time()
45. Selects all elements in the document
//*
minutes-from-time(time)
string(arg)
substring-after(str1, str2)
46. Returns true if str2 appears anywhere inside str1
trees of nodes
string-length(str)
matches(str1, str2)
'/'
47. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
@
books/book[position()
ends-with(str1, str2)
48. Transformation is actually accomplished by a _____________ like Saxon XSLT
abs(num)
processor application
number(arg)
//title[@*]
49. Selects all title AND price elements in the entire document
compare(arg1, arg2)
Predicates
//title | //price
string-length(str)
50. Selects all book elements with an attribute isbn=
//book[@isbn]
month-from-date(current-date())
.
string-length(str)