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