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