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 October or 10 ?
timezone-from-time(time)
month-from-date(current-date())
path expressions
Xpath operators
2. Returns next lowest integer
matches(str1, str2)
processing-instruction
floor(num)
normalize-space(str)
3. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
insert-before((item1, item2, item3...), positionX, itemX)
processing-instruction
ends-with(str1, str2)
true() and false()
4. Returns boolean true or boolean false
true() and false()
remove((item1, item2, item3...), position)
translate(str1, str2, str3)
seconds-from-time(time)
5. Selects all title elements of the book element AND all price elements in the entire document
/bookstore/book/title | //price
child nodes
year-from-date(date)
//*
6. Returns n-length substring from start position
usable document
day-from-date(date)
'//'
substring(str1, start, len)
7. Selects from the root node
'/'
8. Returns length of current node string
substring(str,start)
month-from-date(current-date())
string-length()
year-from-date(date)
9. The XPath division operator not "/" cuz "/" is used in path expressions
div
Predicates
index-of((item1, item2), item3...), target)
/bookstore/book/title | //price
10. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
books/book[price > 35.00]
sequence
path expressions
books/book[position()
11. XPath is a for defining parts of an XML document
syntax
day-from-date(date)
sequence
books/book[1]
12. XSL is what we use to get from readable to _________
index-of((item1, item2), item3...), target)
usable document
normalize-space(str)
parent
13. Selects first two book elements from the children of books element
current-time()
insert-before((item1, item2, item3...), positionX, itemX)
compare(arg1, arg2)
books/book[position()
14. Returns next highest integer
substring-before(str1, str2)
ceiling(num)
div
XSLT
15. Selects all book elements with a child element "price" with values greater than 35
normalize-space(str)
translate(str1, str2, str3)
books/book[price > 35.00]
processor application
16. _______ have 3 primary relationships: parent - child - sibling
nodes
ceiling(num)
substring(str1, start, len)
Xpath operators
17. Selects all title elements which have any attribute
'//'
substring(str1, start, len)
criteria
//title[@*]
18. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
child nodes
nodes
parent node
Xpath operators
19. Returns minute value from time passed
month-from-date(date)
//*
minutes-from-time(time)
'//'
20. Returns everything before the first occurrence of str2
floor(num)
string(arg)
/bookstore/book/title | //price
substring-before(str1, str2)
21. Returns second value from time passed
seconds-from-time(time)
sequence
round(num)
'//'
22. Returns true if str2 appears anywhere inside str1
replace(str1, str2, str3)
matches(str1, str2)
//book[@isbn]
sequence
23. Replaces chars of str2 found in str1 with chars of str3
not(arg)
path expressions
translate(str1, str2, str3)
floor(num)
24. Selects current node
day-from-date(date)
.
timezone-from-time(time)
true() and false()
25. Converts string to lower case
lower-case(str)
processor application
'/'
contains(str1, str2)
26. Selects all the child nodes of the bookstore element
//title | //price
/bookstore/*
attribute node
minutes-from-time(time)
27. Selects all title AND price elements in the entire document
true() and false()
concat(str1, str2, str3...)
//title | //price
parent
28. XPath is a major element in _______
XSLT
attribute node
floor(num)
substring(str1, start, len)
29. Returns logically rounded integer
current-time()
lower-case(str)
abs(num)
round(num)
30. Returns month value out of date passed
minutes-from-time(time)
substring-after(str1, str2)
insert-before((item1, item2, item3...), positionX, itemX)
month-from-date(date)
31. Trims leading and trailing spaces
processing-instruction
div
child nodes
normalize-space(str)
32. Returns hour value from time passed
normalize-space(str)
hours-from-time(time)
string-length()
string-length(str)
33. Returns absolute value (example abs(-2.5) returns 2.5
//title[@*]
abs(num)
minutes-from-time(time)
lower-case(str)
34. Selects last book element from the children of books element
//*
processor application
sequence
books/book[last()]
35. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
string(arg)
path expressions
transforming
usable document
36. Selects all elements in the document
not(arg)
books/book[1]
//*
//book/title | //book/price
37. Returns year value out of the date passed
month-from-date(current-date())
upper-case(str)
year-from-date(date)
//title | //price
38. Returns true if str1 starts with str2
year-from-date(date)
starts-with(str1, str2)
not(arg)
abs(num)
39. Returns true if str1 contains str2
path
contains(str1, str2)
compare(arg1, arg2)
timezone-from-time(time)
40. Element nodes may have zero - one - or more _________
//title[@*]
timezone-from-time(time)
child nodes
standard function
41. Sibling nodes all have the same ______
parent
ends-with(str1, str2)
remove((item1, item2, item3...), position)
string-length(str)
42. Returns time right now
replace(str1, str2, str3)
current-time()
ends-with(str1, str2)
contains(str1, str2)
43. Selects parent of current node
child nodes
matches(str1, str2)
..
substring(str,start)
44. Returns false or true
year-from-date(current-date())
processing-instruction
boolean(arg)
translate(str1, str2, str3)
45. Converts string number to numeric value
books/book[1]
number(arg)
substring(str,start)
normalize-space(str)
46. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
remove((item1, item2, item3...), position)
//book[@isbn]
instinct-values(item1, item2, item3...))
@
47. In str1, replaces all occurrences of str2 with str3
current-time()
abs(num)
replace(str1, str2, str3)
transformation
48. Predicates work somewhat like _____________
string-join((str1, str2, str3), separator)
arrays and functions
transforming
ceiling(num)
49. selects first book element from the children of books element
/bookstore/book/title | //price
/bookstore/*
normalize-space(str)
books/book[1]
50. Returns timezone value from time passed
hours-from-time(time)
timezone-from-time(time)
path
usable document