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