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. Travels from current node to select nodes that match - wherever they are
2. Returns everything after the first occurrence of str2
substring-after(str1, str2)
upper-case(str)
attribute node
string-length(str)
3. XSL is what we use to get from readable to _________
usable document
nodes
upper-case(str)
parent node
4. Returns true if str1 starts with str2
usable document
not(arg)
.
starts-with(str1, str2)
5. Sibling nodes all have the same ______
remove((item1, item2, item3...), position)
year-from-date(current-date())
'//'
parent
6. Returns substring from start position to end of string
usable document
normalize-space(str)
attribute node
substring(str,start)
7. Selects all title AND price elements of all book elements
//book/title | //book/price
//book[@isbn]
Xpath operators
replace(str1, str2, str3)
8. Returns false if true - true if false (negative logic)
books/book[price > 35.00]
timezone-from-time(time)
not(arg)
//title | //price
9. Selects parent of current node
..
seconds-from-time(time)
transformation
round(num)
10. Selects all title AND price elements in the entire document
//title | //price
not(arg)
string(arg)
starts-with(str1, str2)
11. Returns next lowest integer
child nodes
string-join((str1, str2, str3), separator)
floor(num)
normalize-space(str)
12. Returns complete date/time
div
current-dateTime()
sequence
trees of nodes
13. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
attribute node
current-time()
instinct-values(item1, item2, item3...))
'/'
14. Element nodes may have zero - one - or more _________
translate(str1, str2, str3)
child nodes
parent
path expressions
15. Returns true if str1 contains str2
month-from-date(current-date())
path
transformation
contains(str1, str2)
16. Converts string to upper case
minutes-from-time(time)
upper-case(str)
//title | //price
books/book[1]
17. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
Predicates
month-from-date(date)
boolean(arg)
18. Returns time right now
Xpath operators
year-from-date(current-date())
current-time()
attribute node
19. Converts string number to numeric value
sequence
number(arg)
string-length()
books/book[position()
20. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
true() and false()
'//'
timezone-from-time(time)
21. Returns everything before the first occurrence of str2
Xpath operators
number(arg)
substring-before(str1, str2)
month-from-date(date)
22. xpath function categories: numeric - string - boolea - date/time - ________
sequence
//*
'//'
number(arg)
23. Returns length of passed string
string-length(str)
//book/title | //book/price
remove((item1, item2, item3...), position)
/bookstore/book/title | //price
24. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
books/book[last()]
transforming
replace(str1, str2, str3)
compare(arg1, arg2)
25. Converts string to lower case
books/book[1]
ends-with(str1, str2)
lower-case(str)
processor application
26. 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
books/book[last()]
transforming
concat(str1, str2, str3...)
criteria
27. Returns absolute value (example abs(-2.5) returns 2.5
minutes-from-time(time)
abs(num)
substring-before(str1, str2)
contains(str1, str2)
28. Returns logically rounded integer
starts-with(str1, str2)
//book/title | //book/price
round(num)
translate(str1, str2, str3)
29. XPath is a for defining parts of an XML document
usable document
parent node
lower-case(str)
syntax
30. Selects attributes
translate(str1, str2, str3)
@
arrays and functions
/bookstore/book/title | //price
31. XML documents are treated as _________- so the root of the tree is called the document node or root node
//*
sequence
string-length()
trees of nodes
32. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
number(arg)
//book[@isbn]
Xpath operators
path expressions
33. The process of taking raw XML - adding XSL - and outputting a document file of some type
minutes-from-time(time)
substring-after(str1, str2)
transformation
year-from-date(current-date())
34. Returns n-length substring from start position
substring(str1, start, len)
transformation
contains(str1, str2)
attribute node
35. Returns timezone value from time passed
true() and false()
timezone-from-time(time)
standard function
path
36. Converts value to a string
lower-case(str)
month-from-date(date)
nodes
string(arg)
37. In str1, replaces all occurrences of str2 with str3
usable document
replace(str1, str2, str3)
books/book[last()]
books/book[position()
38. _______ have 3 primary relationships: parent - child - sibling
transforming
seconds-from-time(time)
boolean(arg)
nodes
39. XPath is a major element in _______
/bookstore/book/title | //price
contains(str1, str2)
XSLT
matches(str1, str2)
40. Predicates work somewhat like _____________
number(arg)
arrays and functions
ends-with(str1, str2)
books/book[1]
41. every element and every attribute have just one _________
upper-case(str)
Xpath operators
not(arg)
parent node
42. Returns true if str2 appears anywhere inside str1
year-from-date(date)
upper-case(str)
matches(str1, str2)
div
43. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
concat(str1, str2, str3...)
attribute node
//*
month-from-date(current-date())
44. Returns minute value from time passed
XSLT
string-length()
minutes-from-time(time)
lower-case(str)
45. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
instinct-values(item1, item2, item3...))
string-join((str1, str2, str3), separator)
concat(str1, str2, str3...)
processing-instruction
46. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
boolean(arg)
timezone-from-time(time)
matches(str1, str2)
47. 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)
round(num)
month-from-date(current-date())
books/book[price > 35.00]
48. Returns today's date
current-date()
substring-after(str1, str2)
seconds-from-time(time)
/bookstore/book/title | //price
49. Returns second value from time passed
seconds-from-time(time)
ends-with(str1, str2)
//book/title | //book/price
/bookstore/*
50. Selects current node
year-from-date(date)
starts-with(str1, str2)
'//'
.