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. Converts string to upper case
//book/title | //book/price
hours-from-time(time)
//*
upper-case(str)
2. XSL is what we use to get from readable to _________
//*
trees of nodes
usable document
boolean(arg)
3. Returns today's date
upper-case(str)
current-date()
books/book[position()
starts-with(str1, str2)
4. XPath is a major element in _______
..
boolean(arg)
//book[@isbn]
XSLT
5. Selects all book elements with a child element "price" with values greater than 35
year-from-date(current-date())
child nodes
//book/title | //book/price
books/book[price > 35.00]
6. Selects current node
translate(str1, str2, str3)
index-of((item1, item2), item3...), target)
.
books/book[position()
7. Selects parent of current node
..
substring-before(str1, str2)
Xpath operators
upper-case(str)
8. The process of taking raw XML - adding XSL - and outputting a document file of some type
XSLT
/bookstore/*
parent
transformation
9. XPath is a for defining parts of an XML document
index-of((item1, item2), item3...), target)
syntax
ceiling(num)
true() and false()
10. Element nodes may have zero - one - or more _________
.
child nodes
substring(str,start)
floor(num)
11. Travels from current node to select nodes that match - wherever they are
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. Returns true if str2 appears anywhere inside str1
current-date()
matches(str1, str2)
replace(str1, str2, str3)
string-join((str1, str2, str3), separator)
13. Sibling nodes all have the same ______
path expressions
parent
current-date()
string(arg)
14. Returns n-length substring from start position
substring-after(str1, str2)
books/book[price > 35.00]
floor(num)
substring(str1, start, len)
15. Predicates work somewhat like _____________
instinct-values(item1, item2, item3...))
string-length(str)
'/'
arrays and functions
16. Returns boolean true or boolean false
insert-before((item1, item2, item3...), positionX, itemX)
Predicates
true() and false()
/bookstore/*
17. Selects attributes
minutes-from-time(time)
@
//*
standard function
18. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
number(arg)
Predicates
..
path expressions
19. Concatenates strings together with separator between each string
Xpath operators
criteria
string-join((str1, str2, str3), separator)
books/book[1]
20. Returns month value out of date passed
remove((item1, item2, item3...), position)
replace(str1, str2, str3)
month-from-date(date)
//book/title | //book/price
21. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
arrays and functions
true() and false()
processing-instruction
Predicates
22. Returns hour value from time passed
hours-from-time(time)
normalize-space(str)
string-join((str1, str2, str3), separator)
ceiling(num)
23. Returns complete date/time
translate(str1, str2, str3)
timezone-from-time(time)
compare(arg1, arg2)
current-dateTime()
24. Returns substring from start position to end of string
substring(str,start)
Xpath operators
books/book[price > 35.00]
index-of((item1, item2), item3...), target)
25. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
/bookstore/*
'//'
number(arg)
index-of((item1, item2), item3...), target)
26. Returns year value out of the date passed
year-from-date(date)
concat(str1, str2, str3...)
upper-case(str)
timezone-from-time(time)
27. Returns October or 10 ?
month-from-date(current-date())
syntax
matches(str1, str2)
month-from-date(date)
28. Selects all book elements with an attribute isbn=
'/'
transformation
XSLT
//book[@isbn]
29. Returns false if true - true if false (negative logic)
books/book[position()
minutes-from-time(time)
not(arg)
current-time()
30. Compares strings, returns 0 if same, -1 if not same
upper-case(str)
standard function
compare(arg1, arg2)
current-dateTime()
31. xpath function categories: numeric - string - boolea - date/time - ________
sequence
substring(str1, start, len)
/bookstore/*
books/book[1]
32. Selects all title AND price elements in the entire document
ceiling(num)
books/book[price > 35.00]
parent
//title | //price
33. Returns second value from time passed
number(arg)
substring(str1, start, len)
hours-from-time(time)
seconds-from-time(time)
34. _______ have 3 primary relationships: parent - child - sibling
books/book[position()
XSLT
string-length()
nodes
35. Returns absolute value (example abs(-2.5) returns 2.5
month-from-date(date)
@
ceiling(num)
abs(num)
36. Returns timezone value from time passed
round(num)
timezone-from-time(time)
translate(str1, str2, str3)
'//'
37. Returns next lowest integer
abs(num)
attribute node
floor(num)
contains(str1, str2)
38. Returns length of current node string
sequence
string-length()
..
books/book[last()]
39. every element and every attribute have just one _________
parent node
substring(str1, start, len)
transformation
@
40. Trims leading and trailing spaces
year-from-date(date)
normalize-space(str)
upper-case(str)
starts-with(str1, str2)
41. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
books/book[price > 35.00]
substring(str,start)
minutes-from-time(time)
insert-before((item1, item2, item3...), positionX, itemX)
42. Selects from the root node
'/'
43. Transformation is actually accomplished by a _____________ like Saxon XSLT
//title[@*]
processor application
current-time()
path
44. Converts string to lower case
trees of nodes
lower-case(str)
//title | //price
string-length()
45. Returns next highest integer
translate(str1, str2, str3)
ceiling(num)
replace(str1, str2, str3)
string-length(str)
46. Selects last book element from the children of books element
books/book[last()]
Predicates
starts-with(str1, str2)
not(arg)
47. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
substring(str1, start, len)
substring(str,start)
replace(str1, str2, str3)
48. Returns 2008
abs(num)
normalize-space(str)
current-dateTime()
year-from-date(current-date())
49. The XPath division operator not "/" cuz "/" is used in path expressions
month-from-date(current-date())
compare(arg1, arg2)
div
index-of((item1, item2), item3...), target)
50. Returns logically rounded integer
round(num)
floor(num)
parent node
instinct-values(item1, item2, item3...))