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