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. Transformation is actually accomplished by a _____________ like Saxon XSLT
nodes
processing-instruction
processor application
matches(str1, str2)
2. 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
3. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
round(num)
hours-from-time(time)
minutes-from-time(time)
instinct-values(item1, item2, item3...))
4. Returns length of current node string
string-length()
//*
attribute node
translate(str1, str2, str3)
5. Returns boolean true or boolean false
compare(arg1, arg2)
true() and false()
normalize-space(str)
replace(str1, str2, str3)
6. Returns next lowest integer
floor(num)
@
normalize-space(str)
parent
7. Returns complete date/time
insert-before((item1, item2, item3...), positionX, itemX)
usable document
books/book[1]
current-dateTime()
8. Selects all the child nodes of the bookstore element
day-from-date(date)
ends-with(str1, str2)
standard function
/bookstore/*
9. xpath function categories: numeric - string - boolea - date/time - ________
sequence
//book[@isbn]
processor application
hours-from-time(time)
10. Predicates work somewhat like _____________
arrays and functions
instinct-values(item1, item2, item3...))
..
timezone-from-time(time)
11. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
@
/bookstore/*
remove((item1, item2, item3...), position)
upper-case(str)
12. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
matches(str1, str2)
path expressions
child nodes
substring-after(str1, str2)
13. XML documents are treated as _________- so the root of the tree is called the document node or root node
ends-with(str1, str2)
lower-case(str)
trees of nodes
child nodes
14. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
syntax
books/book[price > 35.00]
//book[@isbn]
15. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
standard function
current-dateTime()
substring(str1, start, len)
index-of((item1, item2), item3...), target)
16. 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
insert-before((item1, item2, item3...), positionX, itemX)
criteria
number(arg)
books/book[1]
17. Returns true if str1 contains str2
ends-with(str1, str2)
sequence
contains(str1, str2)
year-from-date(date)
18. Returns n-length substring from start position
replace(str1, str2, str3)
substring(str1, start, len)
floor(num)
lower-case(str)
19. Returns month value out of date passed
transformation
string-length(str)
current-date()
month-from-date(date)
20. Returns everything after the first occurrence of str2
substring-after(str1, str2)
@
transforming
syntax
21. Returns logically rounded integer
'/'
round(num)
/bookstore/book/title | //price
matches(str1, str2)
22. XSL is what we use to get from readable to _________
lower-case(str)
usable document
number(arg)
string-join((str1, str2, str3), separator)
23. Returns time right now
boolean(arg)
current-time()
//title[@*]
current-date()
24. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
compare(arg1, arg2)
boolean(arg)
attribute node
path expressions
25. Converts value to a string
lower-case(str)
timezone-from-time(time)
string(arg)
syntax
26. Returns October or 10 ?
arrays and functions
ceiling(num)
'/'
month-from-date(current-date())
27. Returns 2008
books/book[last()]
child nodes
year-from-date(current-date())
current-date()
28. Returns second value from time passed
normalize-space(str)
//book/title | //book/price
seconds-from-time(time)
contains(str1, str2)
29. Selects attributes
books/book[price > 35.00]
@
//*
current-date()
30. Converts string number to numeric value
number(arg)
processing-instruction
Predicates
starts-with(str1, str2)
31. XPath contains a library of _________
substring(str,start)
day-from-date(date)
current-dateTime()
standard function
32. Selects all elements in the document
//*
substring-before(str1, str2)
sequence
'/'
33. Selects all title elements of the book element AND all price elements in the entire document
current-dateTime()
books/book[price > 35.00]
substring-after(str1, str2)
/bookstore/book/title | //price
34. ________ allow more specific selections within the XPath
month-from-date(date)
day-from-date(date)
current-time()
Predicates
35. Element nodes may have zero - one - or more _________
child nodes
string(arg)
syntax
books/book[1]
36. Selects from the root node
'/'
37. Replaces chars of str2 found in str1 with chars of str3
abs(num)
translate(str1, str2, str3)
string-length(str)
floor(num)
38. Returns today's date
XSLT
concat(str1, str2, str3...)
current-date()
upper-case(str)
39. Returns true if str1 ends with str2
books/book[last()]
@
year-from-date(current-date())
ends-with(str1, str2)
40. Returns hour value from time passed
hours-from-time(time)
'/'
ends-with(str1, str2)
parent
41. Selects parent of current node
processing-instruction
criteria
//*
..
42. every element and every attribute have just one _________
parent node
current-dateTime()
processor application
day-from-date(date)
43. Returns false or true
boolean(arg)
concat(str1, str2, str3...)
string-length(str)
.
44. Returns year value out of the date passed
..
year-from-date(date)
string-length(str)
replace(str1, str2, str3)
45. Concatenates strings together with separator between each string
hours-from-time(time)
string-join((str1, str2, str3), separator)
string-length(str)
month-from-date(date)
46. Converts string to lower case
lower-case(str)
year-from-date(current-date())
instinct-values(item1, item2, item3...))
string(arg)
47. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
substring(str1, start, len)
round(num)
transforming
Predicates
48. Returns timezone value from time passed
books/book[last()]
arrays and functions
timezone-from-time(time)
normalize-space(str)
49. Selects all title AND price elements of all book elements
current-dateTime()
books/book[last()]
//book/title | //book/price
substring-after(str1, str2)
50. XPath is a major element in _______
lower-case(str)
XSLT
boolean(arg)
books/book[price > 35.00]