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