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. +, -, *, div, =, !=, <, <=, >, >=, or, and, mod (modulus)
/bookstore/book/title | //price
floor(num)
Xpath operators
year-from-date(current-date())
2. Returns minute value from time passed
substring(str1, start, len)
usable document
//*
minutes-from-time(time)
3. Selects attributes
current-dateTime()
@
abs(num)
parent
4. 3 wildcards: ? matches any element node - @ matches any ___________ - node() matches any node of any kind
substring(str,start)
concat(str1, str2, str3...)
parent
attribute node
5. Returns next lowest integer
sequence
ends-with(str1, str2)
trees of nodes
floor(num)
6. xpath function categories: numeric - string - boolea - date/time - ________
concat(str1, str2, str3...)
hours-from-time(time)
index-of((item1, item2), item3...), target)
sequence
7. Returns October or 10 ?
month-from-date(current-date())
string-length()
seconds-from-time(time)
matches(str1, str2)
8. Selects all title AND price elements of all book elements
..
string(arg)
not(arg)
//book/title | //book/price
9. Selects all title AND price elements in the entire document
current-date()
child nodes
//title | //price
books/book[last()]
10. XPath contains a library of _________
month-from-date(date)
..
@
standard function
11. Converts string to upper case
lower-case(str)
upper-case(str)
'//'
concat(str1, str2, str3...)
12. Returns complete date/time
contains(str1, str2)
Xpath operators
standard function
current-dateTime()
13. Returns year value out of the date passed
not(arg)
year-from-date(date)
transforming
lower-case(str)
14. Returns true if str1 starts with str2
starts-with(str1, str2)
timezone-from-time(time)
XSLT
transforming
15. Returns timezone value from time passed
timezone-from-time(time)
substring-after(str1, str2)
parent
standard function
16. In str1, replaces all occurrences of str2 with str3
trees of nodes
replace(str1, str2, str3)
timezone-from-time(time)
day-from-date(date)
17. Selects first two book elements from the children of books element
books/book[position()
seconds-from-time(time)
..
month-from-date(date)
18. Returns today's date
processing-instruction
current-date()
compare(arg1, arg2)
standard function
19. Returns second value from time passed
seconds-from-time(time)
//title[@*]
matches(str1, str2)
translate(str1, str2, str3)
20. Gets position(s) of target item(s) - example: index-of(15, 40, 25, 40, 10), 40) returns (2, 4)
string-length()
replace(str1, str2, str3)
true() and false()
index-of((item1, item2), item3...), target)
21. Seven kinds of nodes in XPath: element - attribute - text - namespace - __________ - comment - document (root) nodes - a.k.a. DECANT-PI
path expressions
round(num)
seconds-from-time(time)
processing-instruction
22. Returns substring from start position to end of string
substring(str,start)
month-from-date(current-date())
path expressions
abs(num)
23. Removes item in the position - example: remove(("ab", "cd", "ef"), 1) returns ("cd", "ef")
day-from-date(date)
starts-with(str1, str2)
concat(str1, str2, str3...)
remove((item1, item2, item3...), position)
24. Returns true if str1 ends with str2
ends-with(str1, str2)
books/book[position()
month-from-date(date)
parent
25. Returns hour value from time passed
@
hours-from-time(time)
current-dateTime()
contains(str1, str2)
26. every element and every attribute have just one _________
year-from-date(date)
//*
parent node
number(arg)
27. Converts value to a string
//*
substring-after(str1, str2)
string(arg)
books/book[last()]
28. XPath is a major element in _______
XSLT
month-from-date(date)
'/'
insert-before((item1, item2, item3...), positionX, itemX)
29. Selects all title elements of the book element AND all price elements in the entire document
'//'
contains(str1, str2)
nodes
/bookstore/book/title | //price
30. The XPath division operator not "/" cuz "/" is used in path expressions
ends-with(str1, str2)
parent node
lower-case(str)
div
31. Converts string number to numeric value
replace(str1, str2, str3)
number(arg)
current-dateTime()
round(num)
32. Returns everything after the first occurrence of str2
//title[@*]
substring-after(str1, str2)
substring(str,start)
number(arg)
33. Concatenates strings together with separator between each string
string-length(str)
contains(str1, str2)
string-join((str1, str2, str3), separator)
compare(arg1, arg2)
34. Compares strings, returns 0 if same, -1 if not same
..
child nodes
//title | //price
compare(arg1, arg2)
35. Returns false or true
month-from-date(date)
boolean(arg)
starts-with(str1, str2)
substring(str,start)
36. 3 parts of XSL (eXtensible stylesheet language): Xpath for navigating XML documents - XSLT for ______ documents - XSL-FO for formatting XML documents
/bookstore/*
string-length(str)
substring(str1, start, len)
transforming
37. Returns false if true - true if false (negative logic)
not(arg)
//title[@*]
abs(num)
transforming
38. XPath is a for defining parts of an XML document
parent node
true() and false()
month-from-date(date)
syntax
39. Returns 2008
year-from-date(current-date())
concat(str1, str2, str3...)
//book[@isbn]
parent node
40. XML documents are treated as _________- so the root of the tree is called the document node or root node
boolean(arg)
trees of nodes
processing-instruction
Xpath operators
41. Predicates work somewhat like _____________
arrays and functions
current-time()
abs(num)
//book[@isbn]
42. XPath uses ____________ to navigate in XML documents - selecting nodes or node-sets
path
syntax
path expressions
string-join((str1, str2, str3), separator)
43. Returns true if str2 appears anywhere inside str1
current-time()
'//'
matches(str1, str2)
//book/title | //book/price
44. Selects from the root node
'/'
45. Returns n-length substring from start position
transforming
arrays and functions
substring(str1, start, len)
compare(arg1, arg2)
46. ________ allow more specific selections within the XPath
/bookstore/book/title | //price
//*
current-dateTime()
Predicates
47. Returns day value from date passed
boolean(arg)
normalize-space(str)
day-from-date(date)
processor application
48. Selects last book element from the children of books element
parent
..
//title[@*]
books/book[last()]
49. Concatenates strings together (example concat('It",'is','cool') returns "Itiscool"
arrays and functions
round(num)
concat(str1, str2, str3...)
/bookstore/book/title | //price
50. Selects all title elements which have any attribute
string(arg)
translate(str1, str2, str3)
compare(arg1, arg2)
//title[@*]