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 true if str1 starts with str2
criteria
standard function
//book/title | //book/price
starts-with(str1, str2)
2. Converts string to upper case
processing-instruction
..
upper-case(str)
remove((item1, item2, item3...), position)
3. Returns all unique values in that collection - example: distinct-values(a, b, c, d, a, c) returns (a, b, c, d)
upper-case(str)
instinct-values(item1, item2, item3...))
concat(str1, str2, str3...)
remove((item1, item2, item3...), position)
4. Returns everything after the first occurrence of str2
path expressions
'/'
number(arg)
substring-after(str1, str2)
5. Returns true if str1 contains str2
parent node
contains(str1, str2)
//book/title | //book/price
current-dateTime()
6. Returns absolute value (example abs(-2.5) returns 2.5
abs(num)
matches(str1, str2)
'/'
attribute node
7. Returns length of current node string
concat(str1, str2, str3...)
string-join((str1, str2, str3), separator)
string-length()
'/'
8. Selects attributes
books/book[1]
substring-after(str1, str2)
true() and false()
@
9. Returns everything before the first occurrence of str2
sequence
abs(num)
substring-before(str1, str2)
parent node
10. XML documents are treated as _________- so the root of the tree is called the document node or root node
parent node
remove((item1, item2, item3...), position)
//title[@*]
trees of nodes
11. Selects all the child nodes of the bookstore element
/bookstore/*
path
substring(str,start)
trees of nodes
12. Selects all title elements which have any attribute
day-from-date(date)
string(arg)
XSLT
//title[@*]
13. Converts value to a string
string(arg)
//*
hours-from-time(time)
//title[@*]
14. Returns month value out of date passed
month-from-date(date)
matches(str1, str2)
lower-case(str)
hours-from-time(time)
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. Selects current node
books/book[position()
starts-with(str1, str2)
.
translate(str1, str2, str3)
17. Selects all book elements with an attribute isbn=
books/book[position()
div
//book[@isbn]
books/book[price > 35.00]
18. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
processing-instruction
ceiling(num)
ends-with(str1, str2)
minutes-from-time(time)
19. Trims leading and trailing spaces
normalize-space(str)
ends-with(str1, str2)
instinct-values(item1, item2, item3...))
child nodes
20. every element and every attribute have just one _________
year-from-date(date)
lower-case(str)
string-length()
parent node
21. Converts string number to numeric value
//title | //price
abs(num)
books/book[price > 35.00]
number(arg)
22. Returns false if true - true if false (negative logic)
boolean(arg)
processing-instruction
usable document
not(arg)
23. Converts string to lower case
Predicates
lower-case(str)
index-of((item1, item2), item3...), target)
books/book[last()]
24. Selects last book element from the children of books element
books/book[last()]
hours-from-time(time)
seconds-from-time(time)
Predicates
25. Returns complete date/time
current-dateTime()
//title[@*]
..
concat(str1, str2, str3...)
26. Returns substring from start position to end of string
matches(str1, str2)
transformation
substring(str,start)
starts-with(str1, str2)
27. Returns 2008
timezone-from-time(time)
year-from-date(current-date())
seconds-from-time(time)
minutes-from-time(time)
28. Returns day value from date passed
contains(str1, str2)
Xpath operators
day-from-date(date)
standard function
29. XPath is a major element in _______
current-dateTime()
XSLT
translate(str1, str2, str3)
month-from-date(current-date())
30. Returns n-length substring from start position
//book[@isbn]
not(arg)
substring(str1, start, len)
books/book[1]
31. Returns minute value from time passed
standard function
minutes-from-time(time)
div
remove((item1, item2, item3...), position)
32. xpath function categories: numeric - string - boolea - date/time - ________
sequence
string-join((str1, str2, str3), separator)
insert-before((item1, item2, item3...), positionX, itemX)
true() and false()
33. Returns timezone value from time passed
upper-case(str)
timezone-from-time(time)
true() and false()
trees of nodes
34. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
attribute node
books/book[position()
path
..
35. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
normalize-space(str)
path expressions
year-from-date(date)
ends-with(str1, str2)
36. Replaces chars of str2 found in str1 with chars of str3
translate(str1, str2, str3)
transforming
standard function
syntax
37. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
true() and false()
parent
standard function
concat(str1, str2, str3...)
38. In str1, replaces all occurrences of str2 with str3
replace(str1, str2, str3)
books/book[last()]
'/'
starts-with(str1, str2)
39. Selects first two book elements from the children of books element
books/book[position()
sequence
ceiling(num)
..
40. Returns next lowest integer
floor(num)
abs(num)
day-from-date(date)
string(arg)
41. Returns boolean true or boolean false
abs(num)
not(arg)
translate(str1, str2, str3)
true() and false()
42. Returns today's date
current-date()
month-from-date(current-date())
parent
books/book[last()]
43. Element nodes may have zero - one - or more _________
child nodes
books/book[price > 35.00]
trees of nodes
'//'
44. Transformation is actually accomplished by a _____________ like Saxon XSLT
normalize-space(str)
floor(num)
replace(str1, str2, str3)
processor application
45. 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
..
.
compare(arg1, arg2)
46. Returns hour value from time passed
hours-from-time(time)
seconds-from-time(time)
trees of nodes
parent node
47. Returns second value from time passed
books/book[1]
seconds-from-time(time)
.
round(num)
48. Returns next highest integer
abs(num)
path expressions
ceiling(num)
//title[@*]
49. XPath contains a library of _________
path
//*
round(num)
standard function
50. XPath is a for defining parts of an XML document
syntax
.
substring-before(str1, str2)
month-from-date(date)