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