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