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. Sibling nodes all have the same ______
ceiling(num)
parent
lower-case(str)
processor application
2. Returns true if str1 contains str2
transformation
day-from-date(date)
contains(str1, str2)
//book/title | //book/price
3. Selects parent of current node
div
trees of nodes
insert-before((item1, item2, item3...), positionX, itemX)
..
4. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
syntax
books/book[last()]
.
concat(str1, str2, str3...)
5. Returns substring from start position to end of string
current-time()
/bookstore/book/title | //price
child nodes
substring(str,start)
6. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
not(arg)
//*
path
7. selects first book element from the children of books element
remove((item1, item2, item3...), position)
year-from-date(current-date())
books/book[1]
criteria
8. Selects current node
hours-from-time(time)
true() and false()
criteria
.
9. Returns true if str1 ends with str2
contains(str1, str2)
starts-with(str1, str2)
ends-with(str1, str2)
hours-from-time(time)
10. Returns logically rounded integer
round(num)
year-from-date(date)
.
books/book[position()
11. Replaces chars of str2 found in str1 with chars of str3
floor(num)
sequence
translate(str1, str2, str3)
current-dateTime()
12. Selects last book element from the children of books element
number(arg)
year-from-date(current-date())
round(num)
books/book[last()]
13. Transformation is actually accomplished by a _____________ like Saxon XSLT
not(arg)
string-join((str1, str2, str3), separator)
year-from-date(date)
processor application
14. 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
15. XPath is a for defining parts of an XML document
Xpath operators
minutes-from-time(time)
syntax
attribute node
16. Returns day value from date passed
number(arg)
true() and false()
day-from-date(date)
upper-case(str)
17. Selects all title AND price elements of all book elements
string-join((str1, str2, str3), separator)
//book[@isbn]
'//'
//book/title | //book/price
18. Converts value to a string
string(arg)
usable document
hours-from-time(time)
@
19. Returns n-length substring from start position
substring(str1, start, len)
round(num)
matches(str1, str2)
books/book[1]
20. Returns boolean true or boolean false
true() and false()
/bookstore/*
concat(str1, str2, str3...)
books/book[last()]
21. ________ allow more specific selections within the XPath
index-of((item1, item2), item3...), target)
Predicates
.
remove((item1, item2, item3...), position)
22. Returns hour value from time passed
//book[@isbn]
trees of nodes
current-date()
hours-from-time(time)
23. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
books/book[1]
seconds-from-time(time)
contains(str1, str2)
instinct-values(item1, item2, item3...))
24. Selects all title elements which have any attribute
trees of nodes
hours-from-time(time)
seconds-from-time(time)
//title[@*]
25. XSL is what we use to get from readable to _________
index-of((item1, item2), item3...), target)
usable document
substring-before(str1, str2)
attribute node
26. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
substring(str,start)
string-length(str)
'//'
remove((item1, item2, item3...), position)
27. Compares strings, returns 0 if same, -1 if not same
compare(arg1, arg2)
/bookstore/book/title | //price
floor(num)
substring-after(str1, str2)
28. Returns timezone value from time passed
//book[@isbn]
floor(num)
ceiling(num)
timezone-from-time(time)
29. Selects all elements in the document
transforming
string(arg)
//*
not(arg)
30. Element nodes may have zero - one - or more _________
child nodes
Predicates
string-length()
syntax
31. Returns length of current node string
floor(num)
compare(arg1, arg2)
string-length()
string-length(str)
32. _______ have 3 primary relationships: parent - child - sibling
compare(arg1, arg2)
substring(str1, start, len)
year-from-date(date)
nodes
33. Returns false if true - true if false (negative logic)
translate(str1, str2, str3)
not(arg)
path expressions
XSLT
34. Returns year value out of the date passed
..
substring-before(str1, str2)
year-from-date(date)
contains(str1, str2)
35. Returns next lowest integer
ends-with(str1, str2)
transformation
floor(num)
string-join((str1, str2, str3), separator)
36. Returns absolute value (example abs(-2.5) returns 2.5
translate(str1, str2, str3)
round(num)
abs(num)
@
37. Returns month value out of date passed
month-from-date(date)
round(num)
concat(str1, str2, str3...)
/bookstore/*
38. Returns 2008
//book/title | //book/price
month-from-date(current-date())
year-from-date(current-date())
trees of nodes
39. Selects all book elements with a child element "price" with values greater than 35
year-from-date(date)
child nodes
books/book[price > 35.00]
substring(str1, start, len)
40. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
syntax
books/book[last()]
.
41. Converts string to upper case
books/book[price > 35.00]
boolean(arg)
upper-case(str)
seconds-from-time(time)
42. Returns complete date/time
day-from-date(date)
current-dateTime()
lower-case(str)
//book/title | //book/price
43. Returns second value from time passed
substring(str1, start, len)
.
attribute node
seconds-from-time(time)
44. Selects from the root node
'/'
45. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
true() and false()
translate(str1, str2, str3)
insert-before((item1, item2, item3...), positionX, itemX)
Predicates
46. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
substring-before(str1, str2)
substring-after(str1, str2)
arrays and functions
transforming
47. Returns true if str1 starts with str2
ends-with(str1, str2)
starts-with(str1, str2)
//book[@isbn]
transforming
48. Selects first two book elements from the children of books element
processor application
boolean(arg)
lower-case(str)
books/book[position()
49. Returns everything after the first occurrence of str2
substring-after(str1, str2)
boolean(arg)
books/book[last()]
criteria
50. In str1, replaces all occurrences of str2 with str3
/bookstore/book/title | //price
insert-before((item1, item2, item3...), positionX, itemX)
substring-before(str1, str2)
replace(str1, str2, str3)