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