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