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. Selects all book elements with an attribute isbn=
substring-after(str1, str2)
remove((item1, item2, item3...), position)
nodes
//book[@isbn]
2. _______ have 3 primary relationships: parent - child - sibling
seconds-from-time(time)
nodes
substring-before(str1, str2)
processing-instruction
3. Returns 2008
year-from-date(current-date())
Predicates
processor application
sequence
4. Converts value to a string
string-length()
Xpath operators
string(arg)
substring-after(str1, str2)
5. In str1, replaces all occurrences of str2 with str3
child nodes
starts-with(str1, str2)
hours-from-time(time)
replace(str1, str2, str3)
6. Element nodes may have zero - one - or more _________
child nodes
month-from-date(current-date())
contains(str1, str2)
matches(str1, str2)
7. selects first book element from the children of books element
div
books/book[1]
year-from-date(date)
string-join((str1, str2, str3), separator)
8. Returns true if str2 appears anywhere inside str1
string-length()
day-from-date(date)
round(num)
matches(str1, str2)
9. Transformation is actually accomplished by a _____________ like Saxon XSLT
child nodes
month-from-date(date)
processor application
books/book[position()
10. Returns today's date
usable document
current-date()
books/book[1]
month-from-date(date)
11. Returns boolean true or boolean false
substring-after(str1, str2)
books/book[1]
timezone-from-time(time)
true() and false()
12. Returns year value out of the date passed
starts-with(str1, str2)
standard function
abs(num)
year-from-date(date)
13. Replaces chars of str2 found in str1 with chars of str3
path
translate(str1, str2, str3)
.
remove((item1, item2, item3...), position)
14. xpath function categories: numeric - string - boolea - date/time - ________
transforming
sequence
concat(str1, str2, str3...)
substring-before(str1, str2)
15. The process of taking raw XML - adding XSL - and outputting a document file of some type
transformation
upper-case(str)
seconds-from-time(time)
'/'
16. Selects all book elements with a child element "price" with values greater than 35
starts-with(str1, str2)
parent
books/book[price > 35.00]
nodes
17. Returns time right now
insert-before((item1, item2, item3...), positionX, itemX)
.
criteria
current-time()
18. ________ allow more specific selections within the XPath
month-from-date(date)
ceiling(num)
//*
Predicates
19. Compares strings, returns 0 if same, -1 if not same
'//'
compare(arg1, arg2)
processor application
transforming
20. XSL is what we use to get from readable to _________
remove((item1, item2, item3...), position)
usable document
syntax
concat(str1, str2, str3...)
21. Travels from current node to select nodes that match - wherever they are
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. Selects current node
path
timezone-from-time(time)
.
matches(str1, str2)
23. Returns everything before the first occurrence of str2
contains(str1, str2)
substring-before(str1, str2)
'//'
path expressions
24. Trims leading and trailing spaces
normalize-space(str)
substring(str1, start, len)
day-from-date(date)
insert-before((item1, item2, item3...), positionX, itemX)
25. Selects first two book elements from the children of books element
books/book[position()
month-from-date(date)
year-from-date(date)
upper-case(str)
26. Returns absolute value (example abs(-2.5) returns 2.5
current-dateTime()
path expressions
instinct-values(item1, item2, item3...))
abs(num)
27. XML documents are treated as _________- so the root of the tree is called the document node or root node
arrays and functions
current-dateTime()
trees of nodes
month-from-date(current-date())
28. Returns length of passed string
string-length(str)
lower-case(str)
attribute node
concat(str1, str2, str3...)
29. Inserts new itemX into the collection at the positionX - example insert-before("a", "b", "c"), 3, "z") returns (abzc)
transformation
div
insert-before((item1, item2, item3...), positionX, itemX)
//book[@isbn]
30. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
sequence
replace(str1, str2, str3)
year-from-date(date)
remove((item1, item2, item3...), position)
31. Concatenates strings together with separator between each string
string-join((str1, str2, str3), separator)
arrays and functions
instinct-values(item1, item2, item3...))
parent
32. Returns minute value from time passed
books/book[last()]
..
minutes-from-time(time)
ceiling(num)
33. Converts string to lower case
lower-case(str)
year-from-date(current-date())
trees of nodes
abs(num)
34. Returns true if str1 starts with str2
starts-with(str1, str2)
@
month-from-date(date)
current-date()
35. Converts string to upper case
month-from-date(current-date())
upper-case(str)
@
abs(num)
36. Returns false if true - true if false (negative logic)
syntax
not(arg)
abs(num)
upper-case(str)
37. XPath is a for defining parts of an XML document
syntax
abs(num)
minutes-from-time(time)
/bookstore/*
38. Selects last book element from the children of books element
books/book[last()]
.
not(arg)
day-from-date(date)
39. Selects all title elements of the book element AND all price elements in the entire document
starts-with(str1, str2)
/bookstore/book/title | //price
usable document
concat(str1, str2, str3...)
40. Returns complete date/time
//book[@isbn]
current-dateTime()
concat(str1, str2, str3...)
substring-before(str1, str2)
41. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
Xpath operators
substring-before(str1, str2)
books/book[position()
year-from-date(current-date())
42. Returns true if str1 ends with str2
books/book[price > 35.00]
ends-with(str1, str2)
substring(str1, start, len)
remove((item1, item2, item3...), position)
43. Converts string number to numeric value
index-of((item1, item2), item3...), target)
matches(str1, str2)
number(arg)
nodes
44. Returns true if str1 contains str2
parent node
abs(num)
contains(str1, str2)
string-join((str1, str2, str3), separator)
45. Returns n-length substring from start position
ceiling(num)
ends-with(str1, str2)
minutes-from-time(time)
substring(str1, start, len)
46. Returns logically rounded integer
not(arg)
parent node
round(num)
day-from-date(date)
47. Returns second value from time passed
compare(arg1, arg2)
@
translate(str1, str2, str3)
seconds-from-time(time)
48. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
replace(str1, str2, str3)
transforming
month-from-date(date)
@
49. XPath is a major element in _______
//title | //price
string-length(str)
abs(num)
XSLT
50. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
boolean(arg)
string(arg)
processing-instruction
path expressions