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