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