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