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