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