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. Converts string to lower case
//book/title | //book/price
lower-case(str)
substring(str1, start, len)
sequence
2. XSL is what we use to get from readable to _________
concat(str1, str2, str3...)
current-dateTime()
round(num)
usable document
3. Returns true if str1 ends with str2
//title | //price
Predicates
ends-with(str1, str2)
substring-before(str1, str2)
4. Returns day value from date passed
round(num)
arrays and functions
day-from-date(date)
XSLT
5. Returns minute value from time passed
Predicates
books/book[position()
nodes
minutes-from-time(time)
6. Returns time right now
div
instinct-values(item1, item2, item3...))
current-time()
parent
7. Returns substring from start position to end of string
substring(str,start)
transformation
parent
index-of((item1, item2), item3...), target)
8. Returns true if str1 contains str2
string-length(str)
contains(str1, str2)
.
nodes
9. 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
year-from-date(date)
month-from-date(date)
index-of((item1, item2), item3...), target)
10. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
remove((item1, item2, item3...), position)
month-from-date(date)
hours-from-time(time)
path
11. Returns boolean true or boolean false
month-from-date(date)
string-length()
true() and false()
books/book[position()
12. 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
13. Returns n-length substring from start position
trees of nodes
floor(num)
upper-case(str)
substring(str1, start, len)
14. Returns true if str2 appears anywhere inside str1
contains(str1, str2)
matches(str1, str2)
ceiling(num)
year-from-date(date)
15. Selects parent of current node
..
compare(arg1, arg2)
hours-from-time(time)
concat(str1, str2, str3...)
16. xpath function categories: numeric - string - boolea - date/time - ________
sequence
attribute node
matches(str1, str2)
arrays and functions
17. Element nodes may have zero - one - or more _________
child nodes
day-from-date(date)
sequence
substring(str1, start, len)
18. The XPath division operator not "/" cuz "/" is used in path expressions
not(arg)
abs(num)
child nodes
div
19. Selects all the child nodes of the bookstore element
transformation
/bookstore/*
substring-after(str1, str2)
processor application
20. Returns length of passed string
arrays and functions
string-length(str)
ceiling(num)
processing-instruction
21. Trims leading and trailing spaces
insert-before((item1, item2, item3...), positionX, itemX)
//book/title | //book/price
normalize-space(str)
number(arg)
22. Selects last book element from the children of books element
attribute node
true() and false()
books/book[last()]
not(arg)
23. XML documents are treated as _________- so the root of the tree is called the document node or root node
trees of nodes
books/book[price > 35.00]
instinct-values(item1, item2, item3...))
substring-before(str1, str2)
24. Converts value to a string
hours-from-time(time)
parent node
string(arg)
transformation
25. Converts string to upper case
current-dateTime()
upper-case(str)
path
true() and false()
26. Returns year value out of the date passed
year-from-date(date)
matches(str1, str2)
substring(str,start)
processor application
27. Returns hour value from time passed
hours-from-time(time)
starts-with(str1, str2)
year-from-date(date)
books/book[last()]
28. Selects all title AND price elements in the entire document
starts-with(str1, str2)
minutes-from-time(time)
true() and false()
//title | //price
29. Returns everything after the first occurrence of str2
substring-after(str1, str2)
@
current-dateTime()
standard function
30. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
substring(str,start)
nodes
instinct-values(item1, item2, item3...))
abs(num)
31. Returns length of current node string
year-from-date(current-date())
div
string-length()
syntax
32. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
seconds-from-time(time)
index-of((item1, item2), item3...), target)
arrays and functions
current-time()
33. Returns next lowest integer
processor application
floor(num)
transformation
path expressions
34. Returns true if str1 starts with str2
starts-with(str1, str2)
ceiling(num)
usable document
upper-case(str)
35. Selects all title AND price elements of all book elements
replace(str1, str2, str3)
year-from-date(date)
XSLT
//book/title | //book/price
36. Returns month value out of date passed
translate(str1, str2, str3)
month-from-date(date)
matches(str1, str2)
@
37. Returns complete date/time
substring-after(str1, str2)
//book/title | //book/price
trees of nodes
current-dateTime()
38. Sibling nodes all have the same ______
ceiling(num)
string-join((str1, str2, str3), separator)
parent
//*
39. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
round(num)
'//'
Predicates
40. Returns timezone value from time passed
div
string-join((str1, str2, str3), separator)
timezone-from-time(time)
current-date()
41. Selects all book elements with a child element "price" with values greater than 35
books/book[price > 35.00]
substring-before(str1, str2)
lower-case(str)
ends-with(str1, str2)
42. Selects all title elements which have any attribute
//title[@*]
upper-case(str)
path expressions
syntax
43. The process of taking raw XML - adding XSL - and outputting a document file of some type
compare(arg1, arg2)
Xpath operators
day-from-date(date)
transformation
44. Returns 2008
'/'
year-from-date(current-date())
XSLT
remove((item1, item2, item3...), position)
45. Returns logically rounded integer
round(num)
//book[@isbn]
syntax
current-date()
46. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
path
translate(str1, str2, str3)
concat(str1, str2, str3...)
books/book[position()
47. Returns next highest integer
parent
path expressions
ceiling(num)
.
48. Predicates work somewhat like _____________
translate(str1, str2, str3)
abs(num)
arrays and functions
Predicates
49. every element and every attribute have just one _________
contains(str1, str2)
seconds-from-time(time)
substring(str1, start, len)
parent node
50. ________ allow more specific selections within the XPath
concat(str1, str2, str3...)
parent
Predicates
books/book[1]