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 next lowest integer
path
criteria
Predicates
floor(num)
2. Returns length of current node string
arrays and functions
string-length()
parent node
substring(str,start)
3. Returns day value from date passed
day-from-date(date)
replace(str1, str2, str3)
/bookstore/book/title | //price
instinct-values(item1, item2, item3...))
4. Selects all the child nodes of the bookstore element
month-from-date(date)
hours-from-time(time)
/bookstore/*
ceiling(num)
5. Selects parent of current node
..
@
child nodes
parent
6. The XPath division operator not "/" cuz "/" is used in path expressions
standard function
translate(str1, str2, str3)
div
syntax
7. XPath is a for defining parts of an XML document
syntax
arrays and functions
processing-instruction
abs(num)
8. Selects all elements in the document
@
books/book[last()]
processing-instruction
//*
9. Returns false or true
boolean(arg)
day-from-date(date)
XSLT
replace(str1, str2, str3)
10. ________ allow more specific selections within the XPath
arrays and functions
Predicates
remove((item1, item2, item3...), position)
/bookstore/book/title | //price
11. Element nodes may have zero - one - or more _________
child nodes
minutes-from-time(time)
current-date()
remove((item1, item2, item3...), position)
12. _______ have 3 primary relationships: parent - child - sibling
path
nodes
criteria
string(arg)
13. Returns n-length substring from start position
div
nodes
true() and false()
substring(str1, start, len)
14. Returns length of passed string
..
day-from-date(date)
path
string-length(str)
15. selects first book element from the children of books element
seconds-from-time(time)
books/book[1]
current-time()
lower-case(str)
16. Returns absolute value (example abs(-2.5) returns 2.5
syntax
not(arg)
//*
abs(num)
17. XPath contains a library of _________
standard function
processor application
parent
syntax
18. Returns month value out of date passed
//title[@*]
usable document
translate(str1, str2, str3)
month-from-date(date)
19. Selects all book elements with a child element "price" with values greater than 35
year-from-date(current-date())
books/book[price > 35.00]
books/book[1]
trees of nodes
20. Returns true if str1 starts with str2
starts-with(str1, str2)
transforming
normalize-space(str)
replace(str1, str2, str3)
21. Selects all title elements which have any attribute
//*
processing-instruction
//title[@*]
hours-from-time(time)
22. Returns timezone value from time passed
contains(str1, str2)
usable document
timezone-from-time(time)
.
23. Selects all title AND price elements in the entire document
current-dateTime()
books/book[price > 35.00]
//title | //price
year-from-date(date)
24. Returns true if str1 ends with str2
string-length(str)
ends-with(str1, str2)
concat(str1, str2, str3...)
compare(arg1, arg2)
25. Transformation is actually accomplished by a _____________ like Saxon XSLT
substring(str1, start, len)
processor application
remove((item1, item2, item3...), position)
.
26. XSL is what we use to get from readable to _________
usable document
substring(str1, start, len)
minutes-from-time(time)
string-length()
27. In str1, replaces all occurrences of str2 with str3
floor(num)
replace(str1, str2, str3)
month-from-date(current-date())
parent
28. 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
29. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
.
books/book[position()
transforming
compare(arg1, arg2)
30. Concatenates strings together with separator between each string
starts-with(str1, str2)
string-join((str1, str2, str3), separator)
transforming
books/book[last()]
31. Returns false if true - true if false (negative logic)
round(num)
not(arg)
number(arg)
//title | //price
32. Returns logically rounded integer
/bookstore/book/title | //price
substring-before(str1, str2)
abs(num)
round(num)
33. 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
substring-before(str1, str2)
criteria
standard function
normalize-space(str)
34. Selects last book element from the children of books element
.
books/book[last()]
month-from-date(current-date())
true() and false()
35. Returns substring from start position to end of string
//title | //price
substring(str,start)
current-dateTime()
normalize-space(str)
36. The process of taking raw XML - adding XSL - and outputting a document file of some type
//book/title | //book/price
'//'
transformation
//title | //price
37. Selects all title AND price elements of all book elements
syntax
//book/title | //book/price
parent
//title | //price
38. Sibling nodes all have the same ______
true() and false()
child nodes
/bookstore/book/title | //price
parent
39. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
//title | //price
syntax
standard function
40. Selects all book elements with an attribute isbn=
/bookstore/*
ceiling(num)
instinct-values(item1, item2, item3...))
//book[@isbn]
41. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
syntax
current-time()
..
42. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
current-dateTime()
//book[@isbn]
@
instinct-values(item1, item2, item3...))
43. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
transformation
attribute node
string-length(str)
index-of((item1, item2), item3...), target)
44. Returns boolean true or boolean false
transforming
instinct-values(item1, item2, item3...))
true() and false()
syntax
45. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
trees of nodes
concat(str1, str2, str3...)
books/book[1]
//book[@isbn]
46. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
'//'
remove((item1, item2, item3...), position)
47. Returns second value from time passed
seconds-from-time(time)
transforming
minutes-from-time(time)
string(arg)
48. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
lower-case(str)
index-of((item1, item2), item3...), target)
XSLT
path expressions
49. every element and every attribute have just one _________
transformation
parent node
remove((item1, item2, item3...), position)
/bookstore/book/title | //price
50. Returns today's date
current-date()
instinct-values(item1, item2, item3...))
/bookstore/book/title | //price
upper-case(str)