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