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