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