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