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