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