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. every element and every attribute have just one _________
//title[@*]
not(arg)
path expressions
parent node
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 substring from start position to end of string
matches(str1, str2)
//book/title | //book/price
string-join((str1, str2, str3), separator)
substring(str,start)
4. Returns timezone value from time passed
nodes
books/book[1]
round(num)
timezone-from-time(time)
5. Transformation is actually accomplished by a _____________ like Saxon XSLT
attribute node
concat(str1, str2, str3...)
insert-before((item1, item2, item3...), positionX, itemX)
processor application
6. Returns year value out of the date passed
year-from-date(date)
usable document
month-from-date(current-date())
transforming
7. Selects all title elements of the book element AND all price elements in the entire document
translate(str1, str2, str3)
child nodes
books/book[last()]
/bookstore/book/title | //price
8. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
books/book[last()]
'//'
books/book[position()
instinct-values(item1, item2, item3...))
9. Selects current node
usable document
timezone-from-time(time)
XSLT
.
10. Returns October or 10 ?
month-from-date(current-date())
matches(str1, str2)
ceiling(num)
arrays and functions
11. 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
//book[@isbn]
number(arg)
parent
12. Selects all title AND price elements of all book elements
string-length()
contains(str1, str2)
@
//book/title | //book/price
13. Returns length of passed string
div
string-length(str)
processor application
timezone-from-time(time)
14. Returns length of current node string
string-length()
processing-instruction
ceiling(num)
//*
15. Returns false or true
current-dateTime()
.
boolean(arg)
criteria
16. Selects first two book elements from the children of books element
processing-instruction
index-of((item1, item2), item3...), target)
parent node
books/book[position()
17. Use a | to select more than one _____ (means AND)
year-from-date(date)
transforming
path
translate(str1, str2, str3)
18. Predicates work somewhat like _____________
..
string-length()
arrays and functions
criteria
19. Returns next highest integer
nodes
ceiling(num)
minutes-from-time(time)
boolean(arg)
20. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
Xpath operators
insert-before((item1, item2, item3...), positionX, itemX)
hours-from-time(time)
//book[@isbn]
21. Returns true if str2 appears anywhere inside str1
matches(str1, str2)
@
string-length()
string-length(str)
22. Selects all book elements with a child element "price" with values greater than 35
seconds-from-time(time)
books/book[price > 35.00]
day-from-date(date)
instinct-values(item1, item2, item3...))
23. selects first book element from the children of books element
seconds-from-time(time)
books/book[1]
month-from-date(current-date())
floor(num)
24. Sibling nodes all have the same ______
parent
'//'
arrays and functions
books/book[position()
25. Returns time right now
'/'
lower-case(str)
not(arg)
current-time()
26. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
concat(str1, str2, str3...)
path
abs(num)
path expressions
27. ________ allow more specific selections within the XPath
Predicates
year-from-date(date)
//title[@*]
month-from-date(current-date())
28. Compares strings, returns 0 if same, -1 if not same
//*
compare(arg1, arg2)
string(arg)
parent
29. Selects all elements in the document
trees of nodes
transformation
//*
/bookstore/book/title | //price
30. Converts string to upper case
Xpath operators
'/'
upper-case(str)
string-length()
31. Selects all title AND price elements in the entire document
//title | //price
attribute node
path
current-dateTime()
32. xpath function categories: numeric - string - boolea - date/time - ________
sequence
books/book[price > 35.00]
usable document
substring-after(str1, str2)
33. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
parent node
processing-instruction
instinct-values(item1, item2, item3...))
replace(str1, str2, str3)
34. Trims leading and trailing spaces
'/'
substring-before(str1, str2)
normalize-space(str)
upper-case(str)
35. Selects from the root node
'/'
36. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
floor(num)
books/book[1]
standard function
Xpath operators
37. Selects attributes
parent
trees of nodes
@
'//'
38. Converts string to lower case
seconds-from-time(time)
lower-case(str)
string-join((str1, str2, str3), separator)
//title[@*]
39. Returns minute value from time passed
minutes-from-time(time)
true() and false()
processor application
.
40. XSL is what we use to get from readable to _________
usable document
criteria
timezone-from-time(time)
'/'
41. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
child nodes
processor application
floor(num)
42. Returns everything before the first occurrence of str2
remove((item1, item2, item3...), position)
substring-before(str1, str2)
substring(str1, start, len)
div
43. Returns absolute value (example abs(-2.5) returns 2.5
..
true() and false()
abs(num)
div
44. _______ have 3 primary relationships: parent - child - sibling
nodes
month-from-date(date)
//title[@*]
month-from-date(current-date())
45. Returns second value from time passed
substring-after(str1, str2)
seconds-from-time(time)
translate(str1, str2, str3)
.
46. Returns true if str1 starts with str2
substring(str,start)
parent
books/book[last()]
starts-with(str1, str2)
47. 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)
//title[@*]
transforming
..
48. Returns everything after the first occurrence of str2
//*
month-from-date(current-date())
substring-after(str1, str2)
current-time()
49. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
parent
year-from-date(current-date())
nodes
concat(str1, str2, str3...)
50. Selects all book elements with an attribute isbn=
//*
//book[@isbn]
standard function
parent