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 all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
insert-before((item1, item2, item3...), positionX, itemX)
instinct-values(item1, item2, item3...))
substring(str1, start, len)
abs(num)
2. Returns next lowest integer
hours-from-time(time)
books/book[last()]
timezone-from-time(time)
floor(num)
3. Converts string to upper case
translate(str1, str2, str3)
concat(str1, str2, str3...)
upper-case(str)
day-from-date(date)
4. Selects all title elements which have any attribute
//title[@*]
trees of nodes
current-dateTime()
@
5. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
timezone-from-time(time)
div
not(arg)
remove((item1, item2, item3...), position)
6. Returns next highest integer
instinct-values(item1, item2, item3...))
//book[@isbn]
substring(str1, start, len)
ceiling(num)
7. Returns true if str1 starts with str2
starts-with(str1, str2)
div
boolean(arg)
not(arg)
8. Returns boolean true or boolean false
string-join((str1, str2, str3), separator)
true() and false()
nodes
month-from-date(date)
9. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
replace(str1, str2, str3)
attribute node
books/book[position()
usable document
10. Selects first two book elements from the children of books element
Xpath operators
number(arg)
books/book[price > 35.00]
books/book[position()
11. 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)
lower-case(str)
/bookstore/*
matches(str1, str2)
12. Selects all book elements with an attribute isbn=
XSLT
processor application
//book[@isbn]
/bookstore/book/title | //price
13. Selects parent of current node
not(arg)
.
books/book[1]
..
14. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
books/book[1]
Xpath operators
.
'/'
15. Returns everything after the first occurrence of str2
parent
substring-after(str1, str2)
books/book[position()
attribute node
16. XSL is what we use to get from readable to _________
usable document
current-dateTime()
string(arg)
concat(str1, str2, str3...)
17. XPath is a for defining parts of an XML document
transforming
day-from-date(date)
attribute node
syntax
18. Trims leading and trailing spaces
lower-case(str)
normalize-space(str)
trees of nodes
parent
19. XPath is a major element in _______
XSLT
floor(num)
boolean(arg)
//title[@*]
20. Returns minute value from time passed
instinct-values(item1, item2, item3...))
minutes-from-time(time)
substring(str1, start, len)
ends-with(str1, str2)
21. _______ have 3 primary relationships: parent - child - sibling
matches(str1, str2)
nodes
current-dateTime()
minutes-from-time(time)
22. Selects all book elements with a child element "price" with values greater than 35
//book/title | //book/price
substring-before(str1, str2)
books/book[price > 35.00]
'//'
23. Sibling nodes all have the same ______
processor application
parent
string-length(str)
compare(arg1, arg2)
24. Returns hour value from time passed
current-time()
parent node
hours-from-time(time)
path expressions
25. Compares strings, returns 0 if same, -1 if not same
/bookstore/*
compare(arg1, arg2)
seconds-from-time(time)
//book[@isbn]
26. Returns 2008
concat(str1, str2, str3...)
year-from-date(current-date())
floor(num)
starts-with(str1, str2)
27. Element nodes may have zero - one - or more _________
/bookstore/*
child nodes
transforming
year-from-date(date)
28. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
path
current-dateTime()
standard function
concat(str1, str2, str3...)
29. Predicates work somewhat like _____________
path
substring-before(str1, str2)
arrays and functions
minutes-from-time(time)
30. XML documents are treated as _________- so the root of the tree is called the document node or root node
arrays and functions
current-dateTime()
attribute node
trees of nodes
31. Returns month value out of date passed
path expressions
month-from-date(date)
transformation
string(arg)
32. Returns everything before the first occurrence of str2
books/book[price > 35.00]
substring(str,start)
substring-before(str1, str2)
usable document
33. Returns day value from date passed
day-from-date(date)
//title[@*]
boolean(arg)
insert-before((item1, item2, item3...), positionX, itemX)
34. Converts string to lower case
transforming
round(num)
lower-case(str)
compare(arg1, arg2)
35. Returns length of current node string
syntax
string-length()
'//'
//book[@isbn]
36. every element and every attribute have just one _________
day-from-date(date)
parent node
timezone-from-time(time)
Xpath operators
37. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
remove((item1, item2, item3...), position)
processing-instruction
month-from-date(date)
current-date()
38. Replaces chars of str2 found in str1 with chars of str3
'//'
not(arg)
trees of nodes
translate(str1, str2, str3)
39. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
not(arg)
substring(str1, start, len)
books/book[1]
transforming
40. Returns second value from time passed
books/book[price > 35.00]
Predicates
concat(str1, str2, str3...)
seconds-from-time(time)
41. Returns true if str1 contains str2
syntax
usable document
nodes
contains(str1, str2)
42. Selects from the root node
'/'
43. Selects all title AND price elements of all book elements
'/'
nodes
//book/title | //book/price
upper-case(str)
44. Returns timezone value from time passed
timezone-from-time(time)
sequence
string(arg)
processor application
45. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path expressions
replace(str1, str2, str3)
/bookstore/book/title | //price
books/book[price > 35.00]
46. Returns n-length substring from start position
substring(str1, start, len)
normalize-space(str)
standard function
//book[@isbn]
47. Returns substring from start position to end of string
substring(str,start)
'/'
string-length(str)
child nodes
48. Use a | to select more than one _____ (means AND)
path
ends-with(str1, str2)
current-date()
compare(arg1, arg2)
49. Converts string number to numeric value
substring-before(str1, str2)
books/book[last()]
year-from-date(current-date())
number(arg)
50. Returns today's date
XSLT
Predicates
month-from-date(current-date())
current-date()