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 day value from date passed
day-from-date(date)
starts-with(str1, str2)
transforming
arrays and functions
2. 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
'//'
instinct-values(item1, item2, item3...))
criteria
sequence
3. Returns length of passed string
string-length(str)
child nodes
..
//title[@*]
4. Sibling nodes all have the same ______
//book[@isbn]
Predicates
hours-from-time(time)
parent
5. Selects all title elements which have any attribute
'/'
processing-instruction
//title[@*]
usable document
6. Returns everything before the first occurrence of str2
contains(str1, str2)
books/book[price > 35.00]
substring-before(str1, str2)
current-date()
7. Returns everything after the first occurrence of str2
//*
parent node
substring-after(str1, str2)
string-length()
8. Returns length of current node string
//title[@*]
not(arg)
string-length()
books/book[1]
9. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
books/book[1]
timezone-from-time(time)
Xpath operators
upper-case(str)
10. Returns logically rounded integer
syntax
sequence
//book/title | //book/price
round(num)
11. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
parent
timezone-from-time(time)
processing-instruction
normalize-space(str)
12. Returns hour value from time passed
nodes
//book[@isbn]
hours-from-time(time)
concat(str1, str2, str3...)
13. Predicates work somewhat like _____________
//title | //price
Predicates
arrays and functions
parent node
14. xpath function categories: numeric - string - boolea - date/time - ________
sequence
//title | //price
usable document
ceiling(num)
15. XPath is a for defining parts of an XML document
ceiling(num)
//book[@isbn]
//book/title | //book/price
syntax
16. Use a | to select more than one _____ (means AND)
attribute node
path
string-join((str1, str2, str3), separator)
insert-before((item1, item2, item3...), positionX, itemX)
17. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
current-date()
trees of nodes
insert-before((item1, item2, item3...), positionX, itemX)
child nodes
18. Replaces chars of str2 found in str1 with chars of str3
insert-before((item1, item2, item3...), positionX, itemX)
number(arg)
.
translate(str1, str2, str3)
19. Returns false or true
lower-case(str)
books/book[last()]
..
boolean(arg)
20. Returns true if str2 appears anywhere inside str1
hours-from-time(time)
@
matches(str1, str2)
month-from-date(date)
21. Concatenates strings together with separator between each string
string(arg)
string-join((str1, str2, str3), separator)
string-length()
day-from-date(date)
22. ________ allow more specific selections within the XPath
Predicates
substring(str,start)
transformation
//book[@isbn]
23. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
instinct-values(item1, item2, item3...))
not(arg)
nodes
replace(str1, str2, str3)
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()]
month-from-date(date)
month-from-date(current-date())
transforming
25. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
standard function
books/book[last()]
index-of((item1, item2), item3...), target)
true() and false()
26. Converts string to upper case
processing-instruction
floor(num)
upper-case(str)
boolean(arg)
27. Selects last book element from the children of books element
insert-before((item1, item2, item3...), positionX, itemX)
remove((item1, item2, item3...), position)
normalize-space(str)
books/book[last()]
28. Trims leading and trailing spaces
normalize-space(str)
arrays and functions
syntax
sequence
29. Returns true if str1 starts with str2
ceiling(num)
starts-with(str1, str2)
current-time()
substring-before(str1, str2)
30. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
starts-with(str1, str2)
string-join((str1, str2, str3), separator)
nodes
31. Selects first two book elements from the children of books element
contains(str1, str2)
Predicates
//*
books/book[position()
32. Selects parent of current node
standard function
round(num)
..
//*
33. Returns time right now
current-time()
translate(str1, str2, str3)
processor application
/bookstore/*
34. Selects all the child nodes of the bookstore element
ends-with(str1, str2)
day-from-date(date)
current-time()
/bookstore/*
35. Returns true if str1 contains str2
true() and false()
round(num)
contains(str1, str2)
day-from-date(date)
36. Returns substring from start position to end of string
substring(str,start)
Xpath operators
transformation
day-from-date(date)
37. Returns true if str1 ends with str2
ends-with(str1, str2)
transforming
books/book[last()]
number(arg)
38. Converts string to lower case
processing-instruction
.
..
lower-case(str)
39. Element nodes may have zero - one - or more _________
current-time()
processing-instruction
criteria
child nodes
40. Returns boolean true or boolean false
boolean(arg)
books/book[1]
@
true() and false()
41. Converts string number to numeric value
substring(str1, start, len)
books/book[price > 35.00]
number(arg)
string-join((str1, str2, str3), separator)
42. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
concat(str1, str2, str3...)
processor application
remove((item1, item2, item3...), position)
XSLT
43. Returns second value from time passed
books/book[position()
seconds-from-time(time)
boolean(arg)
substring(str,start)
44. Transformation is actually accomplished by a _____________ like Saxon XSLT
processor application
books/book[1]
attribute node
.
45. XPath contains a library of _________
standard function
insert-before((item1, item2, item3...), positionX, itemX)
path expressions
..
46. Returns minute value from time passed
minutes-from-time(time)
normalize-space(str)
number(arg)
abs(num)
47. Returns complete date/time
'/'
current-dateTime()
day-from-date(date)
books/book[position()
48. Returns n-length substring from start position
seconds-from-time(time)
index-of((item1, item2), item3...), target)
substring(str1, start, len)
transformation
49. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
@
nodes
string-length()
50. _______ have 3 primary relationships: parent - child - sibling
replace(str1, str2, str3)
nodes
substring(str,start)
//book/title | //book/price