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